<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Answer to my question (for any future inquiry on this matter):<br>
</p>
<p>It turns out that this may be resolved by first decimating the
mesh then smoothing it... <br>
</p>
<p># example from VTK User's Guide, 11th edition, page 109<br>
# may contain typos<br>
from vtk import *<br>
...<br>
poly = vtkPolyData()<br>
poly.SetPoints(...)<br>
poly.SetPolys(...)<br>
<br>
deci = vtkDecimatePro()<br>
deci.SetInputData(poly)<br>
deci.SetTargetReduction(0.9)<br>
deci.PreserverTopologyOn()<br>
<br>
smoother = vtkSmoothPolyDataFilter()<br>
smoother.SetInputConnection(deci.GetOutputPort())<br>
smoother.SetNumberOfIterations(50)<br>
...<br>
<br>
Rgds,</p>
<p>Paul<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 28/04/2016 12:01, Paul Kibet Korir
wrote:<br>
</div>
<blockquote
cite="mid:3d97f5a2-4882-226f-ea98-cf471e20ee5d@ebi.ac.uk"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<p>Hi VTK Users,<br>
<br>
I'm using VTK to interpolate contours that result from the
intersection of a mesh surface with a plane. I'm getting very
strange artefacts as shown in the attached image (I have other
images but the file upload limit prevents me from including
them). The image shows the mesh (as a wireframe) with the plane
in green. There is an extra surface (large green) that protrudes
off the mesh surface with a weird structure inside the mesh.<br>
<br>
What should I do to alleviate this?</p>
<br>
<div class="moz-signature">-- <br>
With kind regards,<br>
<br>
<strong>Paul K Korir, PhD</strong><br>
<i>Scientific Programmer</i><br>
EMBL-EBI<br>
Main Building, A2-35,<br>
WTGC, Hinxton, Cambridge CB10 1SD<br>
P: +44 1223 49 44 22<br>
F: +44 1223 49 44 68</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
With kind regards,<br>
<br>
<strong>Paul K Korir, PhD</strong><br>
<i>Scientific Programmer</i><br>
EMBL-EBI<br>
Main Building, A2-35,<br>
WTGC, Hinxton, Cambridge CB10 1SD<br>
P: +44 1223 49 44 22<br>
F: +44 1223 49 44 68</div>
</body>
</html>