<div>On Sun, Aug 22, 2010 at 3:39 PM, Berk Geveci <span dir="ltr"><<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>></span> wrote:</div>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The length 3 is arbitrary isn't it? There is no requirement that a<br>
tuple will be of length 3 or even <= than 3.<br>
<div></div></blockquote></div><br><div><br></div><div><div>I just saw that there is vtkDataArray::GetTuple(vtkIdType, double*) that is implemented from vtkDataArrayTemplate:</div><div><br></div><div>This does what I was looking for:</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>
I guess I was confused because GetTuple(vtkIdType, double*) is pure virtual in vtkDataArray. Though the names are a bit odd (GetTuple vs GetTupleValue?) there is no need to add anything.</div><div><br>David</div></div>