[vtkusers] vtkNormal

youpie meriadegp at yahoo.fr
Thu Feb 2 04:43:35 EST 2012


Hi, I want to know how I can compute normal from an unstructured grid.
For a vtkPolyData, I use vtkPolyDataNormal and with four codes lines, that
works.
But for the unstructured grid, the only way I see is to complete a tab and
use :
this->getUnstructuredGrid()->GetPointData()->SetNormals(normals);
But I have, me, to create the normals !

See the difference :
http://vtk.1045678.n5.nabble.com/file/n5450164/UGrid_whithout_normal.png 

and :
http://vtk.1045678.n5.nabble.com/file/n5450164/UGrid_with_normal.png 

Thanks in advance.

ps: of course I cannot use vtkPolyData instead of unstructured grid...

--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkNormal-tp5450164p5450164.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list