[vtkusers] vtkPolyDataNormals()

Remo Ziegler ziegler at merl.com
Tue Jul 10 12:26:43 EDT 2001


Hi,

I want to add the normals to vtkPolyData. Therefore I thought it would
be appropriate to use the vtkPolyDataNormal() class. However when I use
it like in the way below, the vtkPolyData has way more points in the
dataset. I do not understand why! Is there another possibility to add
the normals to a vtkPolyData without changing the rest of the
vtkPolyData?

thanks a lot for your help!

Greets .... Remo

/***************************************
 vtkPolyDataNormals *normals = vtkPolyDataNormals::New();
 normals->SetInput(polyData);
 normals->ComputeCellNormalsOn();
 normals->Update();
 polyData = normals->GetOutput();

****************************************/





More information about the vtkusers mailing list