<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 0.00392157. Any idea why this is happening? I would like to keep the original values of those points.<br><br><br>> Date: Thu, 20 May 2010 11:05:01 -0400<br>> Subject: Re: [vtkusers] Filter a structured points-space through a 3d-polydata         shape<br>> From: bill.lorensen@gmail.com<br>> To: karthik.krishnan@kitware.com<br>> CC: sapito_verbenero@hotmail.com; vtkusers@vtk.org<br>> <br>> Here is an example that uses SelectEnclosedPoints:<br>> http://www.vtk.org/Wiki/VTK/Examples/PolyData/PointInsideObject<br>> <br>> <br>> 2010/5/20 Karthik Krishnan <karthik.krishnan@kitware.com>:<br>> > 2010/5/20 Álvaro González Lorente <sapito_verbenero@hotmail.com><br>> >><br>> >> Hello,<br>> >><br>> >> I have a big structured points space, but not all of its points are of my<br>> >> interest, only the ones that are within the shape of a polydata structure<br>> >> (or an unstructured grid too). I wonder if any of you knows if there is any<br>> >> easy way to filter some particular points which are inside this polydata<br>> >> contour.<br>> >><br>> ><br>> > What kind of shape ?<br>> ><br>> > If you have a surface, a closed manifold surface, (only 2D cells), you can<br>> > use vtkSelectEnclosedPoints. It will shoot rays and do intersection tests to<br>> > mark the points inside.<br>> ><br>> > If you have a generic UGrid, you can either extract the boundary faces,<br>> > ensure a closed topology and do the above.<br>> ><br>> > If you have a volume mesh, for instance tetrahedra, you can use the FindCell<br>> > API on each tet to do the inside tests...<br>> ><br>> ><br>> > --<br>> > karthik<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the VTK FAQ at:<br>> > http://www.vtk.org/Wiki/VTK_FAQ<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.vtk.org/mailman/listinfo/vtkusers<br>> ><br>> ><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>