[vtkusers] Mesh with holes: points inside/outside 3-D closed contour
Miguel Sotaquirá
msotaquira at gmail.com
Fri Oct 7 07:58:52 EDT 2011
OK,
I thing I might have a solution for the first question (points insider or
outside the closed contour): using vtkPolygon and specifically the
"PointInPolygon" method (that uses a ray tracing approach). For now I'm
trying this one.
However I still don't know how to choose points inside the contour but at
the same time only belonging to the "outer" (top part of the) surface.
Thanks for your suggestions,
Miguel
2011/10/7 Miguel Sotaquirá <msotaquira at gmail.com>
> 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/a3022de5/attachment.htm>
More information about the vtkusers
mailing list