[Paraview] Bonds representation
Eric E. Monson
emonson at cs.duke.edu
Wed Nov 17 15:31:44 EST 2010
Hey Ken,
It looks to me that if you go to the Display tab and both uncheck Interpolate Scalars, and in the Style group box move Interpolation from Gouraud to Flat, you'll get nasty looking tubes, but each segment will be a separate color. (The attached image is a polydata with six points and one cell where the tubes were scaled and colored by the point data.) Of course, you can increase the tube number of sides to get slightly rounder-looking tubes.
Not a great solution, maybe, but I don't see another one offhand...
-Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NonInterpTubes.png
Type: image/png
Size: 6024 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101117/6811dbe7/attachment.png>
-------------- next part --------------
On Nov 17, 2010, at 2:20 PM, Ken Olum wrote:
> From: "Eric E. Monson" <emonson at cs.duke.edu>
> Date: Wed, 17 Nov 2010 14:09:08 -0500
>
> I haven't used the Tube filter very much, but it looks like e.g. if
> you have two points which define a polydata line, it ignores "cell
> data", which would be defined on the line itself connecting the
> points, but it can use the "point data", which would be an
> attribute defined on the two points at the ends of the lines.
>
> Actually, Tube is willing to use cell data also, but I encountered a
> problem with that. I would like to display a tube with each segment a
> different color. If I write a polydata file with a series of points
> connected by a single line going through all of them, then Tube
> generates a beautiful tube, but it can only make it one color because
> there's only one cell. If I create a sperate polydata line between
> every pair of consecutive points, then Tube is happy to color each of
> these segments differently according to cell data, but it does not
> connect the segments into a single tube, so it has holes and overlaps
> at the corners.
>
> If instead I use point data, then the colors change smoothly from one
> vertex to another, which is not what I want.
>
> Anyone know a solution? Thanks.
>
> Ken
More information about the ParaView
mailing list