On Wed, Nov 14, 2012 at 2:35 AM, Johannes Strecha <span dir="ltr"><<a href="mailto:j.strecha@gmail.com" target="_blank">j.strecha@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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 href="http://www.vtk.org/doc/release/5.8/html/a00128.html#6bea16e1329609dbccce0ff8d2367484" target="_blank">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.</i></em></blockquote><div><br></div>Sounds like you want to make an array on the CellData so that every edge has a scalar rather than every vertex having a scalar. Then you can specify which array to use using something like what Johannes said. Of course, you'll have to decide on the logic to make a value for each edge from the values on each of its end points - the same trouble VTK was having :)<br clear="all">
<br>David</div>