AW: Re: AW: [vtkusers] vtkCurvatures

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


Hendrik Belitz wrote:
> Hi Ismail,
>
>   
>> Hello Hendrik,
>> sorry!What do you mean by swap the pipeline positions?
>>     
>
> vtf->SetInput( del->GetOutput() );
> del->SetInput( polyData1 );
>
> Hope this helps,
>
> Hendrik
>   
two errors message after doing


   
    vtkPolyData* polyData1 = vtkPolyData::New();
    polyData1->SetPoints(cloud1);
    polyData1->GetPolys();  
 
  
    //Delaunay3D
    vtkDelaunay3D *del=vtkDelaunay3D::New();
    del->SetInput(polyData1);
    del->BoundingTriangulationOff();
    del->SetTolerance(0.001);
    del->SetAlpha(0.02);
  
    vtkTriangleFilter *vtf = vtkTriangleFilter::New ();
    vtf->SetInput(del->GetOutput());
 
    
//§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§ 
   
    //Clean    
    vtkCleanPolyData *cleanr = vtkCleanPolyData::New();
    cleanr->SetInput(vtf->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 (0x02247200): Input for connection 
index 0 on input port index 0 for algorithm 
vtkTriangleFilter(0x02246B40) is of type vtkUnstructuredGrid, but a 
vtkPolyData is required.

ERROR: In c:\Program Files\VTK 
5.0\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 795
vtkStreamingDemandDrivenPipeline (0x02247200): Input for connection 
index 0 on input port index 0 for algorithm 
vtkTriangleFilter(0x02246B40) 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