[vtkusers] Strange vtkPolygon behavior

David Doria daviddoria at gmail.com
Wed Jul 13 14:50:02 EDT 2011


The following code creates a contour, and then attempts to create a polygon
on the same points to "fill in" the contour:
http://codepad.org/OxnvsZe6

The contour looks as expected in Paraview, but the polygon is broken (there
are overlapping triangles, etc). I also tried adding the points in the
reverse order (as you can see in PolygonFromContourClockwise
vs PolygonFromContourCounterClockwise), but that doesn't seem to be the
problem.

The last point is not repeated (as per the documentation's requirement) and
there are no self intersections.

Can anyone see where I am going wrong?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110713/6b729e82/attachment.htm>


More information about the vtkusers mailing list