<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 17, 2014 at 7:17 AM, Lin M <span dir="ltr"><<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>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Ā </div><div><br></div><div>double *skullTemplate = vtkDoubleArray::SafeDownCast(m_SkullMesh->GetOutput()->GetPoints()->GetData())->GetPointer(0);</div><div><br></div><div>m_SkullMesh is a vtkPolyData.</div><div><br></div><div>How can I do to get it work? Thank you!</div><div><br></div><div>Best,</div><div>Lin<br></div></div></blockquote><div><br>Please post the smallest, compilable code you can that demonstrates the problem. From what you've shown, one error is that you shouldn't have to GetOutput() from a vtkPolyData. <br><br></div><div>David<br></div></div></div></div>