[vtkusers] How to filter poly data while preserving point data arrays?
cory.quammen at kitware.com
Wed Aug 26 10:30:30 EDT 2015
I think the problem is that there is probably no point data array named
"Mean_Curvature" in the poly data you are using to make the cut with the
boolean operations filter. I think the boolean operations filter will pass
on only data arrays that *both* input poly data objects have.
A solution would be to add a point data array to your cutting object.
vtkPolyData* cutPolyData = ...;
vtkDoubleArray* dummyCurvature = vtkDoubleArray::New(); // maybe you need a
// fill in values in dummyCurvature if needed
// boolean operation filter...
On Thu, Aug 20, 2015 at 6:28 AM, normanius <juch at zhaw.ch> wrote:
> 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.
> 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
> point data arrays that contain the curvature information of the surface.
> This is roughly the processing pipeline:
> domeSurface -> *curvatureFilter* -> domeCurvature ->
> *booleanOperationFilter*(intersect with cutFace) ->
> The problem: while data1 exists, data2 does not exist after the boolean
> data1 =
> data2 =
> *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:
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers