@walid, for more specific answers to your questions, it is always helpful to post some example data so that we can see exactly what the issue is and make sure the solution works with your data.
As @Yoshino suggested, learning the interface of ParaView through the ParaView guide and also the tutorial is a good idea. These and other helpful resources are accessible from ParaView’s Help
menu.
Anyway, back to the question at hand. After you load a csv or txt file, you will get a table of data. The steps to what you want are first to convert the table to a 3D representation of points using the Table to Points
filter. Then the easiest way to convert these points to spheres is to use the Glyph
filter.
Assuming your csv/txt file has at least 4 columns representing the x, y, and z position of each point and the radius of each, the following steps should do what you want.
- Open the csv/txt file.
Apply
. - Add the
Table To Points
filter.- Set the
X Column
,Y Column
, andZ Column
to the respective columns. -
Apply
.
- Set the
- Close the
SpreadSheetView
. (Hit theX
button in the upper right.) - Add the
Glyph
filter.- Change
Glyph Type
toSphere
. - Change
Scale Array
to the name of the column containing the radius. - Change the
Scale Factor
to2
. (The spheres are scaled from a reference with radius 0.5.) - Change
Glyph Mode
toAll Points
. -
Apply
.
- Change
Here are an example csv file and an example ParaView state file that loads this file and uses to create spheres of the specified positions and radii:
example-points.csv (343 Bytes)
spheres-from-position-radius.pvsm (165.4 KB)