<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello,<br><br>Thanks all for your help. It appears that vtkSelectEnclosedPoints has turned out to be the best amongst all choices you have told me. However, a problem has arised: if the initial values of the points in the Structured Points space were from 37.0 to 70.0, the ones that have fallen within the polydata 3d shape are now&nbsp; 0.00392157. Any idea why this is happening? I would like to keep the original values of those points.<br><br><br>&gt; Date: Thu, 20 May 2010 11:05:01 -0400<br>&gt; Subject: Re: [vtkusers] Filter a structured points-space through a 3d-polydata         shape<br>&gt; From: bill.lorensen@gmail.com<br>&gt; To: karthik.krishnan@kitware.com<br>&gt; CC: sapito_verbenero@hotmail.com; vtkusers@vtk.org<br>&gt; <br>&gt; Here is an example that uses SelectEnclosedPoints:<br>&gt; http://www.vtk.org/Wiki/VTK/Examples/PolyData/PointInsideObject<br>&gt; <br>&gt; <br>&gt; 2010/5/20 Karthik Krishnan &lt;karthik.krishnan@kitware.com&gt;:<br>&gt; &gt; 2010/5/20 Álvaro González Lorente &lt;sapito_verbenero@hotmail.com&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Hello,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I have a big structured points space, but not all of its points are of my<br>&gt; &gt;&gt; interest, only the ones that are within the shape of a polydata structure<br>&gt; &gt;&gt; (or an unstructured grid too). I wonder if any of you knows if there is any<br>&gt; &gt;&gt; easy way to filter some particular points which are inside this polydata<br>&gt; &gt;&gt; contour.<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; What kind of shape ?<br>&gt; &gt;<br>&gt; &gt; If you have a surface, a closed manifold surface, (only 2D cells), you can<br>&gt; &gt; use vtkSelectEnclosedPoints. It will shoot rays and do intersection tests to<br>&gt; &gt; mark the points inside.<br>&gt; &gt;<br>&gt; &gt; If you have a generic UGrid, you can either extract the boundary faces,<br>&gt; &gt; ensure a closed topology and do the above.<br>&gt; &gt;<br>&gt; &gt; If you have a volume mesh, for instance tetrahedra, you can use the FindCell<br>&gt; &gt; API on each tet to do the inside tests...<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; karthik<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; &gt; http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>&gt; &gt;<br>&gt; &gt;<br>                                               <br /><hr />¿Sabes que La Gente de Hoy tiene <a href='http://www.vivelive.com/hotmail-la-gente-de-hoy/index.html?spam' target='_new'>GUARDAESPALDAS contra el Spam?</a></body>
</html>