[vtkusers] Getting the normal tuples
Darshan Pai
darshanpai at gmail.com
Tue Mar 13 23:21:03 EDT 2012
Use GetNormals().
On Tue, Mar 13, 2012 at 10:54 PM, chrash <durianjerky at gmail.com> wrote:
> Hi all, I'm attempting to retrieve the normals using code similar to the
> ones
> in the example
>
> vtkPolyDataNormals * normals = vtkPolyDataNormals::New();
> normals->SetInput( Source );
> normals->FlipNormalsOff();
> normals->ComputePointNormalsOn();
> normals->Update();
>
> vtkFloatArray* floatarray =
>
>
> vtkFloatArray::SafeDownCast(normals->GetOutput()->GetPointData()->GetArray("Normals"));
>
> However it seems that *floatarray is not correctly assigned and the pointer
> returned is null. Does anyone know the correct way to access the data
> inside
> the normal array?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Getting-the-normal-tuples-tp5563304p5563304.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120313/0fbf06fe/attachment.htm>
More information about the vtkusers
mailing list