<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Mar 1, 2015 at 6:43 AM, just_rookie <span dir="ltr"><<a href="mailto:925345468@qq.com" target="_blank">925345468@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div><br></div><div>I have followed <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/VisualizationAlgorithms/TubesWithVaryingRadiusAndColors" target="_blank">the page</a> 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!</div></blockquote><div> </div></div>Call ScalarVisibilityOff() on the mapper, and set the color by calling SetColor() on the property object.</div><div class="gmail_extra"><br></div><div class="gmail_extra"> - David</div></div>