[vtkusers] vtkPolyDataNormals adds points??

David Doria daviddoria at gmail.com
Thu Apr 23 12:20:57 EDT 2009


Is there any reason points would be added in the following code?
        cout << "Points before filter: " << polydata->GetNumberOfPoints() <<
endl;
        vtkSmartPointer<vtkPolyDataNormals> normalGenerator =
vtkSmartPointer<vtkPolyDataNormals>::New();
        normalGenerator->SetInput(polydata);
        normalGenerator->SetComputePointNormals(1);
        normalGenerator->SetComputeCellNormals(0);
        normalGenerator->Update();
        polydata = normalGenerator->GetOutput();
        cout << "Points after filter: " << polydata->GetNumberOfPoints() <<
endl;

The output is:
Points before filter: 502
Points after filter: 872

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090423/adc95aed/attachment.htm>


More information about the vtkusers mailing list