[vtk-developers] WG: Problem with vtkContourFilter

Lodron, Gerald Gerald.Lodron at joanneum.at
Fri Apr 1 06:19:21 EDT 2011


m_poContourFilter->SetInputArrayToProcess(0, 0,0, vtkDataObject::FIELD_ASSOCIATION_POINTS , "magnitude");

was the sollution, sorry

Von: vtk-developers-bounces at vtk.org [mailto:vtk-developers-bounces at vtk.org] Im Auftrag von Lodron, Gerald
Gesendet: Freitag, 1. April 2011 11:46
An: VTK Developer (vtk-developers at vtk.org)
Betreff: [vtk-developers] WG: Problem with vtkContourFilter


I have a poly data object with two arrays in point data.

The first array with index 0 is names "vector" and has three components and should not be used in contouring.
The second array is called "magnitude" which represents the magnitude of the "vector" data and should be used in contouring, but my contour filter always uses the first component of the "vector" array, any suggestions?

m_poContourFilter = vtkContourFilter::New();

m_poContourFilter->SetInputArrayToProcess(1, 0,0, vtkDataObject::FIELD_ASSOCIATION_POINTS , "magnitude");




If it is not possible to tell the contour filter that he should use the "magnitude" array, is it possible to swap the two arrays? The vtkPointData::SetArray function is proteced....

best regars,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110401/cd34cffd/attachment.html>

More information about the vtk-developers mailing list