AW: [vtkusers] vtkCurvatures

Ismail Elkhrachy I.Elkhrachy at tu-bs.de
Thu Nov 30 07:15:37 EST 2006


Hendrik Belitz wrote:
> Hi Ismail,
>
> I would suggest to swap the pipeline positions of vtkTriangleFilter und vtkDelaunay3D. Without a tesselation as produced by the latter one, I would assume that the output of your vtkTriangleFilter will be empty.
>
> Regards
>  Hendrik
>
>
>   
>> 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
>>
>>
>> _______________________________________________
>> This is the private VTK discussion list. 
>> Please keep messages on-topic. Check the FAQ at: 
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>     
ok, I understood !! do you  mean changing the positions of 
vtkTriangleFilter und vtkDelaunay3D in my code

-- 
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