[vtkusers] Strange vtkPolygon behavior
Frese Daniel Dr.
frese at heidenhain.de
Thu Jul 14 04:04:07 EDT 2011
Hi David,
To be honest I did not check your code very carefully, but from what you write, I had once a similar problem with some concave poly data. Googling I found some older threads reporting similar issues of incorrect displaying some concave poly data. They recommended to apply a vtkTriangleFilter before sending the data to the mapper, and in my case that did the trick.
Hope this helps,
Daniel
Von: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Im Auftrag von David Doria
Gesendet: Mittwoch, 13. Juli 2011 20:50
An: vtkusers at vtk.org
Betreff: [vtkusers] Strange vtkPolygon behavior
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/20110714/6da95d69/attachment.htm>
-------------- next part --------------
</PRE><p>
------------------------------------------------------------------------------------------------------ <br>
Registergericht: Traunstein / Registry Court: HRB 275 - Sitz / Head Office: Traunreut <br>
Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard <br>
Gesch?ftsf?hrung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman),<br>
Michael Grimm, Matthias Fauser, Sebastian Tondorf<br><br>
<a href="http://www.heidenhain.de/disclaimer" target="_blank">E-Mail Haftungsausschluss / E-Mail Disclaimer</a><br><pre>
More information about the vtkusers
mailing list