Hi,<br><br>I'm not sure if I understand your problem correctly. I assume you have the polydata with the scalar you want to vary the tube radius by as a named array in the pointData (as returned by yourPolyData.GetPointData()). You could try to specify which array to process with the TubeFilters inherited method <a class="" href="http://www.vtk.org/doc/release/5.8/html/a00128.html#6bea16e1329609dbccce0ff8d2367484">SetInputArrayToProcess</a> (int idx, int port, int connection, int fieldAssociation, const char *name). fieldAssociation will most likely be FIELD_ASSOCIATION_POINTS, idx, port, connection most likely 0. Check the class reference for further information<em>.<br>
<br>K<i>ind regards,<br>Johannes Strecha.<br></i></em><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 14, 2012 at 2:50 AM, Karim Khayrat <span dir="ltr"><<a href="mailto:kkhayrat@gmail.com" target="_blank">kkhayrat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br> I have a polyData structure with points and lines. I apply the TubeFilter on it, and I would like to have the tube radii vary with scalar. However when I use<span><i> </i></span>SetVaryRadiusToVaryRadiusByAbsoluteScalar(), I get a tapered tube, since the scalar values at the points are used. I am trying to visualize an unstructured network. <br>
Any Tips ?<br>Thanks<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>