[vtkusers] vtkTubeFilterIssue, does not output anything

Will Schroeder will.schroeder at kitware.com
Tue Dec 10 08:06:23 EST 2002


vtkTubeFilter produces triangle strips, not polygons. Try GetNumberOfStrips().
Will

At 11:12 AM 12/10/2002 +0100, sebastien MARAUX wrote:
>I updated the code, it gave the same result.
>
>Any other Idea ?
>
>cout <<"input of tubefilter : number of Lines : "
><<flightsPolyData->GetNumberOfLines() <<endl; // 9070
>
>   vtkTubeFilter *trajectoiresTubes = vtkTubeFilter::New();
>   trajectoiresTubes->SetInput(flightsPolyData);
>   trajectoiresTubes->SetRadius(2);
>   trajectoiresTubes->SetNumberOfSides(6);
>   trajectoiresTubes->Update();
>
>   cout <<"tubeFilter output : number of polys : "
><<trajectoiresTubes->GetOutput()->GetNumberOfPolys() // 0
>
>----- Original Message -----
>From: "Rasmus Reinhold Paulsen" <rrp at imm.dtu.dk>
>To: "sebastien MARAUX" <maraux at ondim.fr>
>Cc: "vtkusers" <vtkusers at public.kitware.com>
>Sent: Tuesday, December 10, 2002 11:05 AM
>Subject: Re: [vtkusers] vtkTubeFilterIssue, does not output anything
>
>
> > 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
> >
> >
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers






More information about the vtkusers mailing list