Use GetNormals().<br><br><div class="gmail_quote">On Tue, Mar 13, 2012 at 10:54 PM, chrash <span dir="ltr"><<a href="mailto:durianjerky@gmail.com">durianjerky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Hi all, I'm attempting to retrieve the normals using code similar to the ones<br>
in the example<br>
<br>
vtkPolyDataNormals * normals = vtkPolyDataNormals::New();<br>
normals->SetInput( Source );<br>
normals->FlipNormalsOff();<br>
normals->ComputePointNormalsOn();<br>
normals->Update();<br>
<br>
vtkFloatArray* floatarray =<br>
<br>
vtkFloatArray::SafeDownCast(normals->GetOutput()->GetPointData()->GetArray("Normals"));<br>
<br>
However it seems that *floatarray is not correctly assigned and the pointer<br>
returned is null. Does anyone know the correct way to access the data inside<br>
the normal array?<br>
<br>
<br>
<br>
--<br>
</div>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Getting-the-normal-tuples-tp5563304p5563304.html" target="_blank">http://vtk.1045678.n5.nabble.com/Getting-the-normal-tuples-tp5563304p5563304.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>