[vtkusers] Trying to define a closed Object

David Gobbi david.gobbi at gmail.com
Thu Jun 12 18:50:31 EDT 2014


Hi Mark,

Try the vtkContourTriangulator, it should be able to properly close
the polygon.  When I wrote the triangulator, I specifically added some
code to search for "loose ends" and add extra line segments to close
the contour.

  David

On Thu, Jun 12, 2014 at 4:38 PM, MarkSchumacher <9mws at queensu.ca> wrote:
> Dear Vtk Users,
> I can't seem to figure out how to define inside our outside of my polydata.
> Im working with about 150 points that define the curve I've posted in the
> pictures below. All these points lie in the same plane , I used cutter to
> create the polydata.
> I've creating a polygon out of these points, but I don't quite understand
> the output . (second image attached)
>
> All I'm trying to do is close points 1 and 2 (on the image) and create an
> object that tells me if a point lies within that object.
>
> Thanks , I'd appreciate any help .
>
> Image 1: http://i.imgur.com/YOrebTq.png
> Image 2: http://i.imgur.com/iZfc4th.png


More information about the vtkusers mailing list