[vtkusers] PedigreeIds arrays don't propogate accross a pipeline
Jenya Burstein
taijinian at gmail.com
Thu Nov 4 16:52:32 EDT 2010
Hello,
I am having a difficulty of retrieving a pedigree array from a filter's
output.
m_tableToPolyData->GetOutput()->GetAttributes(vtkDataObject::POINT)->SetPedigreeIds(
m_tableToPolyData->GetOutput()->GetPointData()->GetAbstractArray(0));
vtkSmartPointer<vtkClipPolyData> anotherFilter =
vtkSmartPointer<vtkClipPolyData>::New();
anotherFilter->SetInputConnection(m_tableToPolyData->GetOutputPort());
anotherFilter->Update();
vtkAbstractArray* origPedigreeIds =
m_tableToPolyData->GetOutput()->GetAttributes(vtkDataObject::POINT)->GetPedigreeIds();
//origPedigreeIds comes back correctly.
vtkAbstractArray* pedigreeIds =
anotherFilter->GetOutput()->GetAttributes(vtkDataObject::POINT)->GetPedigreeIds();
//pedigreeIds comes back as NULL
Any help is greatly appreciated,
Jenya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101104/8e6f3aa5/attachment.htm>
More information about the vtkusers
mailing list