[vtkusers] How to get data ptr from the vtkpolydata?

Lin M majcjc at gmail.com
Wed Sep 17 07:17:30 EDT 2014


Hi all,

I try to get the data ptr which I think is a double * pointing to a double
array from vtkpolydata but I met an access violation when I use

double *skullTemplate =
vtkDoubleArray::SafeDownCast(m_SkullMesh->GetOutput()->GetPoints()->GetData())->GetPointer(0);

m_SkullMesh is a vtkPolyData.

How can I do to get it work? Thank you!

Best,
Lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140917/571da029/attachment.html>


More information about the vtkusers mailing list