[vtkusers] Filter a structured points-space through a 3d-polydata shape

Karthik Krishnan karthik.krishnan at kitware.com
Thu May 20 10:34:24 EDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100520/ea51fa74/attachment.htm>


More information about the vtkusers mailing list