[vtkusers] Filter a structured points-space through a 3d-polydata shape
Bill Lorensen
bill.lorensen at gmail.com
Thu May 20 11:05:01 EDT 2010
Here is an example that uses SelectEnclosedPoints:
http://www.vtk.org/Wiki/VTK/Examples/PolyData/PointInsideObject
2010/5/20 Karthik Krishnan <karthik.krishnan at kitware.com>:
> 2010/5/20 Álvaro González Lorente <sapito_verbenero at hotmail.com>
>>
>> Hello,
>>
>> 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.
>>
>
> What kind of shape ?
>
> 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.
>
> If you have a generic UGrid, you can either extract the boundary faces,
> ensure a closed topology and do the above.
>
> If you have a volume mesh, for instance tetrahedra, you can use the FindCell
> API on each tet to do the inside tests...
>
>
> --
> karthik
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list