[vtkusers] Making tubes that looks good !

Bruno Travençolo bant at grad.icmc.usp.br
Wed Jun 4 10:04:20 EDT 2003


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.




More information about the vtkusers mailing list