# Particles as glyphs

**URL:** https://discourse.paraview.org/t/particles-as-glyphs/4792
**Category:** ParaView Support
**Created:** [July 9, 2020, 4:14pm UTC](https://discourse.paraview.org/t/particles-as-glyphs/4792 "2020-07-09T16:14:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sthavishtha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sthavishtha/32/4166_2.png) [@sthavishtha](https://discourse.paraview.org/u/sthavishtha)
#### Post date: [July 9, 2020, 4:14pm UTC](https://discourse.paraview.org/t/particles-as-glyphs/4792/1 "2020-07-09T16:14:20Z")

</div>

Hello everyone

I have collected the data of particles’ positions and their diameters in a .csv file. Later, I read them into Paraview 5.8.0 using _TableToPoints_ filter, select the _Keep all Data arrays_ option and choose _X, Y, Z column options_ as the particles’ positions. After _clipping_ them to a certain domain, I attempt to plot these particles as _glyphs_ with _Sphere_ being the _Glyph_ type. In the _Scale_ option, I select the particles’ diameters as the _Scale array_ and choose a suitable _Scale factor_ as the particles are too small to be visible.

By default, the _Masking option_ shows the following parameters:  
_Glyph mode_ : Uniform spatial distribution (bounds based)  
_Maximum number of sample points_ : 5000  
_Seed_ : 10339

My main concern is that when I change the maximum number of sample points to say 1000 or 100000, the particle glyphs appearing in the screen appear/disappear accordingly. In my opinion, this must not happen because the number of particles is fixed (input via the .csv file). So, I wanted to know if I am missing something or I need to adopt an alternative procedure to visualize the particles in Paraview.

Paraview screen below (the white points are particles as glyphs) :

 ![particles_glyphs](https://discourse.paraview.org/uploads/default/original/2X/9/946478c81d2a7cfe1f0181f21e726b4727689c6a.png)  
Zoomed below :  
 ![particles_glyphs_zoom](https://discourse.paraview.org/uploads/default/original/2X/c/cce5354ac5b6547cc651433a4dd5dbf0e1bb7414.png)

For reference, the paraview state and .csv files are available in this [link](https://drive.google.com/file/d/1AMTcXhIJTv5Z9e8XHMMATGvae-07tbTg/view?usp=sharing)

Thanks  
Sthavishtha

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [July 9, 2020, 5:57pm UTC](https://discourse.paraview.org/t/particles-as-glyphs/4792/2 "2020-07-09T17:57:42Z")

</div>

Instead of using the Glyph filter, I’d recommend simply use the “Point Gaussian” representation type for the “Clip1” filter. That’ll give you a cleaner (and faster) result.

---

<div class="post-metadata">

### Author: ![sthavishtha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sthavishtha/32/4166_2.png) [@sthavishtha](https://discourse.paraview.org/u/sthavishtha)
#### Post date: [July 10, 2020, 5:50am UTC](https://discourse.paraview.org/t/particles-as-glyphs/4792/3 "2020-07-10T05:50:39Z")

</div>

Perfect, that works. How do I control the color of these particles - I want all of them to be white? In the case of default background, they look like that (screenshots below). However, when I change it to print background, the particles turn black. Any suggestions? Changing the _solid color_ option in the clip has no effect.

Default background :

 ![particles_points_white](https://discourse.paraview.org/uploads/default/original/2X/a/abb9122203a5ff42133715a6cda8f8415e20bc42.png)

Print background :

 ![particles_points_black](https://discourse.paraview.org/uploads/default/original/2X/0/07657377f6e825ab9828d82e7a949f3f0f6c4a9a.png)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [July 10, 2020, 7:38am UTC](https://discourse.paraview.org/t/particles-as-glyphs/4792/4 "2020-07-10T07:38:48Z")

</div>

Solid color is indeed the way to change the color of these. It seems to work for me as expected.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3f0d7c40c7f4beafb0cee3d95a3c175175de4337.png)

---

<div class="post-metadata">

### Author: ![sthavishtha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sthavishtha/32/4166_2.png) [@sthavishtha](https://discourse.paraview.org/u/sthavishtha)
#### Post date: [July 10, 2020, 1:04pm UTC](https://discourse.paraview.org/t/particles-as-glyphs/4792/5 "2020-07-10T13:04:08Z")

</div>

Thanks, it works now. Not sure what I was doing wrong before 🙂
