[vtkusers] triangulate a self-intersecting polygon

redmod79 michael.j.redmond at gmail.com
Fri Jan 2 15:39:41 EST 2015


Is it possible using VTK to triangulate a self-intersecting polygon?  For
example, a polygon shaped as a star, with the lines intersecting each other? 
I want to extract the triangles that would be considered inside the star
using the ray intersection method where an even number of intersections is
outside and an odd number is inside (resulting in the outside triangles of
the star to be inside and the middle pentagram to be outside).

Can I use vtkTriangleFilter for this?  If so, how would I define the star? 
A vtkPolygon cannot be self-intersecting.

Thanks.



--
View this message in context: http://vtk.1045678.n5.nabble.com/triangulate-a-self-intersecting-polygon-tp5729973.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list