[vtkusers] Making tubes that looks good !
Mathieu Malaterre
Mathieu.Malaterre at creatis.insa-lyon.fr
Wed Jun 4 10:14:31 EDT 2003
I am not sure I understand your problem with 2 segements but did you read:
[ The number of tube sides must be greater than 3. If you wish to
use fewer sides (i.e., a ribbon), use vtkRibbonFilter.]
HTH
mathieu
Sebastien Auclair wrote:
> 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
>
--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/
More information about the vtkusers
mailing list