yeah looks like it works . I just assumed it was only a prototype :)<br><br><div class="gmail_quote">On Sun, Aug 22, 2010 at 4:34 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><div class="gmail_quote">On Sun, Aug 22, 2010 at 1:43 PM, Darshan Pai <span dir="ltr"><<a href="mailto:darshanpai@gmail.com" target="_blank">darshanpai@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I don't know why GetTuple is pure virtual in vtkDataArray . Though yeah I agree it should theoretically work the same way .<br><font color="#888888"><br>Darshan</font><div><div></div><div></div></div></blockquote>
</div><br><div><br></div></div><div>I saw that there is vtkDataArray::GetTuple(vtkIdType, double*) that is implemented from vtkDataArrayTemplate:</div><div class="im"><div><br></div><div> vtkDataArray* dataNormals =</div>
<div> vtkDataArray::SafeDownCast(polyDataNormals->GetOutput()->GetPointData()->GetNormals());</div>
<div><br></div></div><div> double dataN[3];</div><div> dataNormals->GetTuple(0,dataN);</div><div><br></div><div>This seems to do exactly what we want.</div><div><br clear="all">Thanks,<br><font color="#888888"><br>David</font></div>
</blockquote></div><br>