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 [emon...@cs.duke.edu]
Sent: Wednesday, November 17, 2010 8:09 PM
To: Jerier Jean-François
Cc: paraview@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


Attachment: file.vtk
Description: file.vtk

_______________________________________________
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to