[vtkusers] Filter set of the polygons by one coordinate value

wydesenej wydesenej at gmail.com
Wed Jun 25 06:11:55 EDT 2014


Hello,

Iam finding fine solution for filter which will has on input vtkPolyData
contains vtkPolygons (like in example
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon).

Every point in ONE polygon in vtkPolyData has constant Z coordinate.
I want to filter vtkPolyData to remove all polygons with Z != x, where x is
my number.


Example:

vtkPolyData before:
polygon A (10,15,6)(12,12,6)(-3,0,6)
polygon B (10,15,6)(80,1,6)(11,1,6)
polygon C (10,15,3)(1,0,3)(-31,12,3)

vtkPolyData after filter with Z=6:
polygon A (10,15,6)(12,12,6)(-3,0,6)
polygon B (10,15,6)(80,1,6)(11,1,6)

Thank for all ideas!

Wydesenej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140625/138301a8/attachment.html>


More information about the vtkusers mailing list