<div class="gmail_quote">On Sun, Aug 22, 2010 at 1:43 PM, Darshan Pai <span dir="ltr"><<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 class="h5"></div></div></blockquote>
</div><br><div><br></div><div>I saw that there is vtkDataArray::GetTuple(vtkIdType, double*) that is implemented from vtkDataArrayTemplate:</div><div><br></div><div> vtkDataArray* dataNormals =</div><div> vtkDataArray::SafeDownCast(polyDataNormals->GetOutput()->GetPointData()->GetNormals());</div>
<div><br></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><br>David</div>