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

Roman Grothausmann roman.grothausmann at helmholtz-berlin.de
Wed May 26 09:20:14 EDT 2010


Bill Lorensen wrote:
> Here is an example that uses SelectEnclosedPoints:
> http://www.vtk.org/Wiki/VTK/Examples/PolyData/PointInsideObject

You should be careful though with SelectEnclosedPoints. We have 
encountered strange/incorrect results (see my post to the list 
"Incorrect result of SelectEnclosedPoints?").

> 
> 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
>>
>>
> _______________________________________________
> 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
> 
> 

-- 
Roman Grothausmann

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Bereich Funktionale Materialien
Institut für angewandte Materialforschung
Hahn-Meitner-Platz 1
D-14109 Berlin	

Tel.: +49-(0)30-8062-2816
Fax.: +49-(0)30-8062-3059

Vorsitzender des Aufsichtsrats: Prof. Dr. Dr. h.c. mult. Joachim Treusch
Stellvertretende Vorsitzende: Dr. Beatrix Vierkorn-Rudolph
Geschäftsführer: Prof. Dr. Anke Rita Kaysser-Pyzalla, Prof. Dr. Dr. h.c. 
Wolfgang Eberhardt, Dr. Ulrich Breuer
Sitz der Gesellschaft: Berlin
Handelsregister: AG Charlottenburg, 89 HRB 5583




More information about the vtkusers mailing list