<div dir="auto">This example may be useful.<div dir="auto"><a href="https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ContoursToSurface/">https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ContoursToSurface/</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 5, 2018 1:35 PM, "normanius" <<a href="mailto:juch@zhaw.ch">juch@zhaw.ch</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(I think I forgot to set the HTML flag before, now the code should be visible.)
<pre>
# comboBefore = combinePolyData(edge1, edge2)
# center1 = computeCenter(edge1)
# center2 = computeCenter(edge2)
# edge2 = scaleObject(edge2, 1.2)
# Scaling is required to make sure that the contours are not intersecting in 2D
# edge2 = moveObject(edge2, center1-center2)
# comboAfter = combinePolyData(edge1, edge2)
result = vtk.vtkContourTriangulator()
result.SetInputData(combo)
result.Update()
poly = vtk.vtkPolyData()
poly.SetPoints(comboBefore.<wbr>GetPoints())
poly.SetPolys(result.GetPolys(<wbr>))
poly.BuildLinks()
poly.BuildCells()
</pre>
<br><hr align="left" width="300">
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" target="_blank">VTK - Users mailing list archive</a> at Nabble.com.<br><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div></div>