[vtkusers] 2D Constructive Geometry

marice at knology.net marice at knology.net
Wed Nov 19 00:25:51 EST 2008


Hello -

Is it possible to use VTK to construct a "surface" from a bunch of coplanar partially overlapping triangles? I have a bunch of triangles that I'd like to union together. After adding all the triangles, I need to get the outer contours (there could be several, since the triangles may form several disjoint "surfaces") and the "holes" (if a "surface" is closed, a hole is an area inside the surface not covered by a triangle).

Basically, I'd like to use VTK to do some constructive 2D geometry using triangles and "union", "intersection", and "difference" operations - and I need it to handle holes.

Is this possible with VTK? If so, can someone point me in the right direction?

Thanks.
Michael




More information about the vtkusers mailing list