[vtkusers] Making tubes that looks good !
Sebastien Auclair
sxa at fluent.com
Wed Jun 4 11:47:28 EDT 2003
I used 3 just as an example... In fact, i'm using 5 as sides count.
See attached image... (The red sphere is not to be considered as part of the
problem. )
Thanks !
_______________________
Seb
----- Original Message -----
From: "Sebastien Auclair" <sxa at fluent.com>
To: "Bruno Travençolo" <bant at grad.icmc.usp.br>
Cc: <vtkusers at public.kitware.com>
Sent: Wednesday, June 04, 2003 10:15 AM
Subject: Re: [vtkusers] Making tubes that looks good !
> No it varies because of the corners.
> If the tube is set for 3 facets, it kinds of extrude a triangle oriented
on
> the point's normal.
> If you try it with a initial polyline made of only 2 segments with a 90
> degree corner, you'll see that the radius gets smaller near the corner
> because the triangle turns,... re-orient itself at each points.
> This is why adding points might do the trick !
>
> Thanks
> _________________________
> Seb
>
> ----- Original Message -----
> From: "Bruno Travençolo" <bant at grad.icmc.usp.br>
> To: "Sebastien Auclair" <sxa at fluent.com>
> Cc: <vtkusers at public.kitware.com>
> Sent: Wednesday, June 04, 2003 10:04 AM
> Subject: Re: [vtkusers] Making tubes that looks good !
>
>
> > Hello,
> >
> > >Making a tube out of a polyline !
> > >
> > >vtkTubeFilter makes the diameter of the tube irregular and we can't use
> it.
> > >
> >
> >
> > Turn on/off the variation of tube radius with scalar value.
> >
> > The tube diameter may be irregular because it is variating proportional
> > with the scalar value ou vector. Try to use:
> SetVaryRadiusToVaryRadiusOff();
> >
> > vtkTubeFilter *tf = vtkTubeFilter::New();
> > tf->SetVaryRadiusToVaryRadiusOff();
> > tf->SetInput(polyline);
> > tf->SetRadius(0.5);
> > tf->SetNumberOfSides(5);
> >
> > bye!!
> >
> > Bruno.
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tube.jpg
Type: image/jpeg
Size: 35745 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030604/ccd5137c/attachment.jpg>
More information about the vtkusers
mailing list