[vtkusers] TubeFilter on PolyData with constant Radius

Johannes Strecha j.strecha at gmail.com
Wed Nov 14 02:35:19 EST 2012


Hi,

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 SetInputArrayToProcess<http://www.vtk.org/doc/release/5.8/html/a00128.html#6bea16e1329609dbccce0ff8d2367484>(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*.

Kind regards,
Johannes Strecha.
*


On Wed, Nov 14, 2012 at 2:50 AM, Karim Khayrat <kkhayrat at gmail.com> wrote:

> Hello,
>   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* *SetVaryRadiusToVaryRadiusByAbsoluteScalar(), I get a
> tapered tube, since the scalar values at the points are used. I am trying
> to visualize an unstructured network.
> Any Tips ?
> Thanks
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121114/186c6507/attachment.htm>


More information about the vtkusers mailing list