OK,<div> </div><div>I thing I might have a solution for the first question (points insider or outside the closed contour): using vtkPolygon and specifically the &quot;PointInPolygon&quot; method (that uses a ray tracing approach). For now I&#39;m trying this one.</div>
<div><br></div><div>However I still don&#39;t know how to choose points inside the contour but at the same time only belonging to the &quot;outer&quot; (top part of the) surface.</div><div><br></div><div>Thanks for your suggestions,</div>
<div>Miguel<br><br><div class="gmail_quote">2011/10/7 Miguel Sotaquirá <span dir="ltr">&lt;<a href="mailto:msotaquira@gmail.com">msotaquira@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi!<div><br></div><div>I have a 3-D surface mesh in which I&#39;ve manually defined a closed contour, similar to this one: <a href="http://tinypic.com/r/2qmp2s1/7" target="_blank">http://tinypic.com/r/2qmp2s1/7</a> (the closed contour being the green curve).</div>


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


<div><br></div><div>I&#39;m trying to make this implementation in VTK but up to know I haven&#39;t come up with ideas for solving these questions:</div><div><br></div><div>1. How to determine if a point is inside or outside the closed contour? I was looking at class vtkSelectPolyData but I don&#39;t know if it would work on a mesh with holes on the surface.</div>


<div><br></div><div>once solve the problem of points inside/outside:</div><div>2. How to take only those points inside of the closed contour but located at the outer surface?</div><div><br></div><div>Thanks!</div><div>Miguel</div>
<font color="#888888">
<div><br></div><div><br></div>
</font></blockquote></div><br></div>