# Create spheres from data containing positions and radius

**URL:** https://discourse.paraview.org/t/create-spheres-from-data-containing-positions-and-radius/3370
**Category:** ParaView Support
**Created:** [January 20, 2020, 10:18am UTC](https://discourse.paraview.org/t/create-spheres-from-data-containing-positions-and-radius/3370 "2020-01-20T10:18:25Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [January 20, 2020, 3:36pm UTC](https://discourse.paraview.org/t/create-spheres-from-data-containing-positions-and-radius/3370/4 "2020-01-20T15:36:17Z")

</div>

@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](https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.7&type=binary&os=Sources&downloadFile=ParaViewGuide-5.7.0.pdf) and also the [tutorial](https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.7&type=binary&os=Sources&downloadFile=ParaViewTutorial-5.7.0.pdf) 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.

1. Open the csv/txt file. `Apply`.
2. Add the `Table To Points` filter.
  1. Set the `X Column`, `Y Column`, and `Z Column` to the respective columns.
  2. `Apply`.

3. Close the `SpreadSheetView`. (Hit the `X` button in the upper right.)
4. Add the `Glyph` filter.
  1. Change `Glyph Type` to `Sphere`.
  2. Change `Scale Array` to the name of the column containing the radius.
  3. Change the `Scale Factor` to `2`. (The spheres are scaled from a reference with radius 0.5.)
  4. Change `Glyph Mode` to `All Points`.
  5. `Apply`.

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](https://discourse.paraview.org/uploads/short-url/rqVBg1fAZoMKsavvAabyPG4jTax.csv) (343 Bytes)  
[spheres-from-position-radius.pvsm](https://discourse.paraview.org/uploads/short-url/cCVyomO11mx9bZgD1WC00JXBnvm.pvsm) (165.4 KB)

---

_[View the full topic](https://discourse.paraview.org/t/create-spheres-from-data-containing-positions-and-radius/3370)._
