[vtkusers] vtkTubeFilterIssue, does not output anything

Rasmus Reinhold Paulsen rrp at imm.dtu.dk
Tue Dec 10 05:05:32 EST 2002


Hi Sebastien,

On Tue, 10 Dec 2002, sebastien MARAUX wrote:

> I get some difficulties using vtkTubeFilter :
> 
> Here is my code :
> 
>   cout <<"input of tubefilter : number of Lines : " <<flightsPolyData->GetNumberOfLines() <<endl; // display 9070
> 
>   vtkTubeFilter *trajectoiresTubes = vtkTubeFilter::New();
>   trajectoiresTubes->SetInput(flightsPolyData);
>   trajectoiresTubes->SetRadius(2);
>   trajectoiresTubes->SetNumberOfSides(6);
>   
>   cout <<"tubeFilter output : number of polys : " <<trajectoiresTubes->GetOutput()->GetNumberOfPolys() <<endl; // display 0
> 
> Did I do something wrong ?

I believe a:
trajectoiresTubes->Update();

Would do wonders.

> Isn't tubeFilter to draw polygonals Tubes around lines ?

Yup!

Regards,
Rasmus





More information about the vtkusers mailing list