<div class="gmail_quote">2010/5/20 Álvaro González Lorente <span dir="ltr"><<a href="mailto:sapito_verbenero@hotmail.com">sapito_verbenero@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hello,<br><br>I have a big structured points space, but not all of its points are of my interest, only the ones that are within the shape of a polydata structure (or an unstructured grid too). I wonder if any of you knows if there is any easy way to filter some particular points which are inside this polydata contour. <br>
<br></div></blockquote><div><br>What kind of shape ?<br><br>If you have a
surface, a closed manifold surface, (only 2D cells), you can use
vtkSelectEnclosedPoints. It will shoot rays and do intersection tests
to mark the points inside.<br><br>If you have a generic UGrid, you can either extract the boundary faces, ensure a closed topology and do the above. <br><br>If you have a volume mesh, for instance tetrahedra, you can use the FindCell API on each tet to do the inside tests...<br>
<br>
<br>
--<br>
karthik<br>
<br></div></div><br>