[vtkusers] Making tubes that looks good !
Sebastien Auclair
sxa at fluent.com
Wed Jun 4 10:15:32 EDT 2003
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
More information about the vtkusers
mailing list