[vtkusers] vtkIdTypeArray: segmentation fault when extracting vtkOriginalPointIds

Jochen jochen.kling at email.de
Thu May 24 05:15:44 EDT 2012


Hi Miguel,

hmm, I would iterate through all arrays first, to see which arrays are
available and what's their name:

int n = polydataThresholded->GetPointData()->GetNumberOfArrays();

for(int i = 0; i < n; i++) {
   std::cout << polydataThresholded->GetPointData()->GetArrayName(i) <<
std::endl;
}

Maybe you can also have a look at this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointCellIds
VTK/Examples/Cxx/PolyData/PointCellIds 


best regards
Jochen

--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkIdTypeArray-segmentation-fault-when-extracting-vtkOriginalPointIds-tp5713344p5713349.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list