[vtkusers] Problem with vtkContourFilter
Lodron, Gerald
Gerald.Lodron at joanneum.at
Fri Apr 1 04:51:43 EDT 2011
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/2ad65526/attachment.htm>
More information about the vtkusers
mailing list