[Paraview] Bonds representation

Jerier Jean-François jean-francois.jerier at epfl.ch
Wed Nov 17 15:50:04 EST 2010


Hello Eric,

   Thank you for your quick reply (very nice picture !!!), this is a good news for me and people who work on granular media. 
However I saw the filter tube in Paraview, but I am a beginner and I don't know to write a correct data file to display this element.

I wrote a little file (see attached file) where I have the point positions (XYZ), the segments (2 Pt_i Pt_j) and the value of radius.
How can I modifiy this file to see the tube instead of four segments

Please, can you help me once again ?

Many thanks
JF


________________________________________
From: Eric E. Monson [emonson at cs.duke.edu]
Sent: Wednesday, November 17, 2010 8:09 PM
To: Jerier Jean-François
Cc: paraview at paraview.org
Subject: Re: [Paraview] Bonds representation

Hey Jean-François,

You should be able to do it, but you'll have to have the right elements in your data to work with. (I'll attach a screen shot that I think is the type of thing you're referring to. You can see the pipeline I used to create it, too, where the Curvature filter is just used to generate some scalars for my cone.)

If you only have the points themselves, then it may be difficult to generate the correct lines between them. If you also have the lines between them as part of the geometry you're loading into ParaView, then you can use the Tube filter to represent those bonds with size and color proportional to the values _at the end points that define the lines_. 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... (If you only have scalar attributes defined on the lines, you can always run the data through Cell Data to Point Data filter before creating the tubes.)

So, it may take a little playing around, but it should be quite possible. Just make sure you specify your data in a way that defines the connections between points, as well as the points themselves.

Good luck,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.vtk
Type: application/octet-stream
Size: 502 bytes
Desc: file.vtk
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101117/47e8118a/attachment.obj>


More information about the ParaView mailing list