[vtkusers] WG: Problem with vtkContourFilter

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


Oh,


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


Hi

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");

m_poContourFilter->SetInputConnection(MyPolyData->GetProducerPort());

m_poContourFilter->SetValue(0,5);

m_poContourFilter->Update();





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,

Gerald


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110401/cd34cffd/attachment.htm>


More information about the vtkusers mailing list