Hello again,<br><br>your problem seems to be the interpolation between the cell values that vtk carries out. This interpolation is desired for most applications and unfortunately I don&#39;t know a way to turn it off, but then my knowledge of such internals is limited.<br>
<br>Johannes.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 14, 2012 at 5:06 PM, Karim Khayrat <span dir="ltr">&lt;<a href="mailto:kkhayrat@gmail.com" target="_blank">kkhayrat@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I attached a simple example. As David said, I would like to have each edge have a fixed radius, independent of it&#39;s neighbour. I tried using SetInputArrayToProcess() with <span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">FIELD_ASSOCIATION_CELLS , and have the radii stored as CellData, but it doesn&#39;t seem to work. </span><span style="color:rgb(80,0,80);font-family:arial,sans-serif">Have I used it correctly ?</span><div>

<font color="#500050" face="arial, sans-serif">An alternative would be to create 2 separate points for every line ( which would mean defining multiple points at the same location), but I hope this is unnecessary. <br></font><div>

<div><div><div class="h5"><br><div class="gmail_quote">On 14 November 2012 13:44, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Wed, Nov 14, 2012 at 2:35 AM, Johannes Strecha <span dir="ltr">&lt;<a href="mailto:j.strecha@gmail.com" target="_blank">j.strecha@gmail.com</a>&gt;</span> wrote:<br></div><div class="gmail_quote"><div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>I&#39;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></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&#39;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 :)<span><font color="#888888"><br clear="all">


<br>David</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Karim Khayrat<br>
</font></span></div></div></div>
<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>