[vtkusers] How to filter poly data while preserving point data arrays?

normanius juch at zhaw.ch
Thu Aug 20 06:28:48 EDT 2015


Hi everyone. 

I use vtkCurvatures to measure the average curvature of irregular dome-like
surfaces (domeSurface). Because of numerical problems close to the edge of
the dome, I would like to filter away the points close to the edge of the
dome. See attached image: the edge is indicated by a red line, the blue
color indicates the excessively high curvature values close to the edge,
which I want to get rid of.

<http://vtk.1045678.n5.nabble.com/file/n5733572/Screen_Shot_2015-08-20_at_11.png> 

The edge is created by a planar cut and I do have a triangulated
representation of the "missing" face of the dome: cutFace.

My approach is to use vtkBooleanOperationPolyDataFilter to calculate the
difference between domeCurvature and cutFace - however, this way I loose the
point data arrays that contain the curvature information of the surface.
This is roughly the processing pipeline:

domeSurface -> *curvatureFilter* -> domeCurvature ->
*booleanOperationFilter*(intersect with cutFace) ->
domeCurvatureWithoutPointsCloseToEdge

The problem: while data1 exists, data2 does not exist after the boolean
operation.
data1 = curvatureFilter.GetOutput().GetPointData().GetArray("Mean_Cuvature")
data2 =
domeCurvatureWithoutPointsCloseToEdge.GetOutput().GetPointData().GetArray("Mean_Cuvature")

*So here is my question*: How can I get rid of the points close to the edge
while preserving the curvature data retrieved by the curvature filter? 

Thank you for any suggestions!





--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-filter-poly-data-while-preserving-point-data-arrays-tp5733572.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list