@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 Pointsfilter.- Set the
X Column,Y Column, andZ Columnto the respective columns. -
Apply.
- Set the
- Close the
SpreadSheetView. (Hit theXbutton in the upper right.) - Add the
Glyphfilter.- Change
Glyph TypetoSphere. - Change
Scale Arrayto the name of the column containing the radius. - Change the
Scale Factorto2. (The spheres are scaled from a reference with radius 0.5.) - Change
Glyph ModetoAll 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)