[vtkusers] how to set color for tube

David Gobbi david.gobbi at gmail.com
Sun Mar 1 08:58:01 EST 2015


On Sun, Mar 1, 2015 at 6:43 AM, just_rookie <925345468 at qq.com> wrote:

> Hi all,
>
> I have followed the page
> <http://www.vtk.org/Wiki/VTK/Examples/Cxx/VisualizationAlgorithms/TubesWithVaryingRadiusAndColors>
> to create a tube, and color of tube is varying from blue to red. What I
> want to do is to set single color for the tube. Any help? Thank you in
> advance!
>

Call ScalarVisibilityOff() on the mapper, and set the color by calling
SetColor() on the property object.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150301/9ce7b265/attachment.html>


More information about the vtkusers mailing list