[vtkusers] Problem with vtkPolyDataNormals.
Dimitrios Perperidis
dp1 at doc.ic.ac.uk
Fri Dec 16 10:46:59 EST 2005
Hi,
I am using the vtkPolyDataNormals to generate a set of normals for a
given polydata object:
reader = vtkPolyDataReader::New();
normals = vtkPolyDataNormals::New();
// Read model image
cout << "Reading model:"<<model_name<<endl;
reader->SetFileName(model_name);
normals->SetInput(reader->GetOutput());
normals->Modified();
normals->Update();
model = normals->GetOutput();
My polydata object consist of 29328 points. When I use
vtkPolyDataNormals, the returned polydata object (after
normals->GetOutput()) consists of 29488 points. It is vital for my
application to calculate the normals of a vtkPolyData object without
changing the number of points in the surface.
Any points/ suggestions?
Regards
Dimitrios
More information about the vtkusers
mailing list