[vtkusers] Mesh with holes: points inside/outside 3-D closed contour

Miguel Sotaquirá msotaquira at gmail.com
Fri Oct 7 01:15:21 EDT 2011


Hi!

I have a 3-D surface mesh in which I've manually defined a closed contour,
similar to this one: http://tinypic.com/r/2qmp2s1/7 (the closed contour
being the green curve).

I want to label only the points inside this contour but, as you can see in
yellow, the surface contains holes and "bumps" which makes difficult this
labeling. What I've decided is that I want to label _only_ those points
located in the "outer" surface, ie without going inside the holes or below
the bumps (which in the end are just another type of holes).

I'm trying to make this implementation in VTK but up to know I haven't come
up with ideas for solving these questions:

1. How to determine if a point is inside or outside the closed contour? I
was looking at class vtkSelectPolyData but I don't know if it would work on
a mesh with holes on the surface.

once solve the problem of points inside/outside:
2. How to take only those points inside of the closed contour but located at
the outer surface?

Thanks!
Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111007/68ab2d12/attachment.htm>


More information about the vtkusers mailing list