[vtkusers] Getting the normal tuples

chrash durianjerky at gmail.com
Tue Mar 13 22:54:08 EDT 2012


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.



More information about the vtkusers mailing list