Thanks a lot. I Just tried the alternative suggested and it seems to work. <br>Thanks again<br>Sreejith<br><br><div class="gmail_quote">On Thu, Apr 16, 2009 at 6:11 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></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;">The tube filter only allows for using point data for scaling the<br>
tubes. Another alternative is create two data sources one for the<br>
sphere and one for the lines, and have duplicate points for the line<br>
ends with appropriate point data to avoid the tapering. In the end you<br>
can use AppendPolyData filter to append the two datasets into one.<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Thu, Apr 16, 2009 at 4:41 AM, Sreejith Kuttanikkad<br>
<<a href="mailto:sreejithpk@gmail.com">sreejithpk@gmail.com</a>> wrote:<br>
> Dear all,<br>
> On Wed, Apr 15, 2009 at 6:26 PM, Utkarsh Ayachit<br>
> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> 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>
><br>
> I have been trying many things but still not able to get what i wanted. For<br>
> instance; please find a polydata xml file i created for a small cubic<br>
> network (8 spheres and 12 tubes).<br>
><br>
> <?xml version="1.0"?><br>
> <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian"><br>
> <PolyData><br>
> <Piece NumberOfPoints="8" NumberOfVerts="0" NumberOfLines="12"<br>
> NumberOfStrips="0" NumberOfPolys="0"><br>
> <Points><br>
> <DataArray type="Float32" NumberOfComponents="3" format="ascii"><br>
> 0 0 0<br>
> 1 0 0<br>
> 0 1 0<br>
> 1 1 0<br>
> 0 0 1<br>
> 1 0 1<br>
> 0 1 1<br>
> 1 1 1<br>
> </DataArray><br>
> </Points><br>
> <Lines><br>
> <DataArray type="Int32" Name="connectivity" format="ascii"><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>
> </DataArray><br>
> <DataArray type="Int32" Name="offsets" format="ascii"><br>
> 2 4 6 8 10 12 14 16 18 20 22 24<br>
> </DataArray><br>
> </Lines><br>
> <PointData Scalars="sph_dia"><br>
> <DataArray type="Float32" Name="sph_dia" format="ascii"><br>
> 2 5 6 8 9 4 3 8<br>
> </DataArray><br>
> </PointData><br>
> </Piece><br>
> </PolyData><br>
> </VTKFile><br>
><br>
><br>
> If I read the above file with paraview and apply Glyph (sphere) and tube<br>
> filter, I can view the network with spheres and tubes. If i choose the scale<br>
> mode scalar and choose sph_dia, i can view spheres with different size.<br>
> Similarly If i choose "vary radius" option to tubes, the size of the tube is<br>
> varied based on the point data (sph_dia) and looks tapered (gradual change<br>
> in size) as shown in the attachment. But that is not I wanted. I have tube<br>
> diameter data and would like to be able to scale based on that and tube<br>
> should have uniform diameter from one end to the other. Please let me know<br>
> if you have any suggestion or tips to attempt.<br>
><br>
> thank you<br>
> Sreejith<br>
> IMFT Toulouse<br>
><br>
><br>
><br>
</div></div></blockquote></div><br>