(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.GetPoints())
poly.SetPolys(result.GetPolys())
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">VTK - Users mailing list archive</a> at Nabble.com.<br/>