Dear all,<br><div class="gmail_quote">On Wed, Apr 15, 2009 at 6:26 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Read in the sphere radii and tube radii as point data on the dataset<br>
that you are creating. Both the glyph filter and the tube filter has<br>
options that allow you to scale the glyph (and the tube) by point<br>
data.<br>
</blockquote><div><br>I have been trying many things but still not able to get what i wanted.
For instance; please find a polydata xml file i created for a small
cubic network (8 spheres and 12 tubes). <br><br>&lt;?xml version=&quot;1.0&quot;?&gt;<br>
&lt;VTKFile type=&quot;PolyData&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot;&gt;<br>&lt;PolyData&gt;<br>&lt;Piece NumberOfPoints=&quot;8&quot; NumberOfVerts=&quot;0&quot; NumberOfLines=&quot;12&quot;<br>

NumberOfStrips=&quot;0&quot; NumberOfPolys=&quot;0&quot;&gt;<br>&lt;Points&gt;<br>&lt;DataArray type=&quot;Float32&quot; NumberOfComponents=&quot;3&quot; format=&quot;ascii&quot;&gt;<br><div class="im">0 0 0 <br>1 0 0 <br>
</div><div class="im">0 1 0<br>1 1 0 <br></div>
0 0 1<br>1 0 1<br><div class="im">0 1 1<br>1 1 1<br></div>&lt;/DataArray&gt;<br>&lt;/Points&gt;<br>&lt;Lines&gt;<br>&lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;ascii&quot;&gt;<br>0 1 2 3 0 2 1 3 4 5 6 7 4 6 5 7 0 4 1 5 2 6 3 7<br>

&lt;/DataArray&gt;<br>&lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;ascii&quot;&gt;<br>2 4 6 8 10 12 14 16 18 20 22 24<br>&lt;/DataArray&gt;<br>&lt;/Lines&gt;<br>&lt;PointData Scalars=&quot;sph_dia&quot;&gt;<br>

&lt;DataArray type=&quot;Float32&quot; Name=&quot;sph_dia&quot; format=&quot;ascii&quot;&gt;<br> 2 5 6 8 9 4 3 8<br>&lt;/DataArray&gt;<br>&lt;/PointData&gt;<br>&lt;/Piece&gt;<br>&lt;/PolyData&gt;<br>&lt;/VTKFile&gt;<br><br>

<br>If I read the above file with paraview and apply Glyph (sphere) and
tube filter, I can view the network with spheres and tubes. If i choose
the scale mode scalar and choose sph_dia, i can view spheres with
different size. Similarly If i choose &quot;vary radius&quot; option to tubes,
the size of the tube is varied based on the point data (sph_dia) and
looks tapered (gradual change in size) as shown in the attachment. But
that is not I wanted. I have tube diameter data and would like to be
able to scale based on that and tube should have uniform diameter from one end to
the other.  Please let me know if you have any suggestion or tips to
attempt.<br>
<br>thank you<br>Sreejith<br>IMFT Toulouse<br><br></div></div><br>