[vtkusers] vtkCurvatures
Ismail Elkhrachy
I.Elkhrachy at tu-bs.de
Thu Nov 30 06:27:20 EST 2006
I am trying to calculate curvatures for point cloud I generated surface
and used
I have got this error message: how can I convert cloud point data to
structured data !!!
Thanks
vtkPolyData* polyData1 = vtkPolyData::New();
polyData1->SetPoints(cloud1);
polyData1->GetPolys();
vtkTriangleFilter *vtf = vtkTriangleFilter::New ();
vtf->SetInput(polyData1);
//Delaunay3D
vtkDelaunay3D *del=vtkDelaunay3D::New();
del->SetInput(vtf->GetOutput());
del->BoundingTriangulationOff();
del->SetTolerance(0.001);
del->SetAlpha(0.02);
vtkCleanPolyData *cleanr = vtkCleanPolyData::New();
cleanr->SetInput(del->GetOutput());
cleanr->SetTolerance(0.005);
//Curvatures
vtkCurvatures *curve1 = vtkCurvatures::New();
curve1->SetInput(cleanr->GetOutput());
curve1->SetCurvatureTypeToGaussian();
ERROR: In c:\Program Files\VTK
5.0\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 795
vtkStreamingDemandDrivenPipeline (0x02249080): Input for connection
index 0 on input port index 0 for algorithm vtkCleanPolyData(0x02248980)
is of type vtkUnstructuredGrid, but a vtkPolyData is required.
--
M.Sc. Ismail Elkhrachy
PhD student
Institut für Geodäsie und Photogrammetrie
Technische Universität Braunschweig
Gaußstr. 22
38106 Braunschweig
Germany
Mob. : 0049 0163 3623486
Tel. : 0049 0531 3917497
Fax : 0049 0531 3917499
E-mail : I.Elkhrachy at tu-bs.de, I.Elkhrachy at yahoo.com
More information about the vtkusers
mailing list