[vtkusers] GetFieldData segfaults

David Doria daviddoria at gmail.com
Thu Apr 23 12:29:24 EDT 2009


With some models, the following call causes a segmentation fault:
vtkSmartPointer<vtkFieldData> FieldData = polydata->GetFieldData();

I was originally calling
vtkSmartPointer<vtkDoubleArray> ScannerLocationArray =
vtkDoubleArray::SafeDownCast(polydata->GetFieldData()->GetArray("ScannerLocation"));

but I thought the ->GetArray() might be failing if GetFieldData returned
null, so I tried to get the entire field data, and it still crashes.

Any thoughts?

Thanks,

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


More information about the vtkusers mailing list