# vtkGlyphSource2D

**URL:** https://discourse.paraview.org/t/vtkglyphsource2d/10176
**Category:** ParaView Support
**Tags:** vtk
**Created:** [August 22, 2022, 8:41am UTC](https://discourse.paraview.org/t/vtkglyphsource2d/10176 "2022-08-22T08:41:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nabilyounes](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/3d9bf3/32.png) [@nabilyounes](https://discourse.paraview.org/u/nabilyounes)
#### Post date: [August 22, 2022, 8:41am UTC](https://discourse.paraview.org/t/vtkglyphsource2d/10176/1 "2022-08-22T08:41:53Z")

</div>

Hello everyone,  
I am facing a small problem. I am trying to simulate granular assemblies in 2D. I am using 2D Glyph, circles, filled! The problem is that the disks I am getting are somehow octagonal. I have seen that they are octagonal because they are defined only by 8 points. Is there any clever way to increase the number of points to make these “octagonal” real disks?  
Hope my message was clear, thank you in advance.  
Nabil

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [August 22, 2022, 9:00am UTC](https://discourse.paraview.org/t/vtkglyphsource2d/10176/2 "2022-08-22T09:00:12Z")

</div>

If you are coding pure vtk, please go to the [vtk forum](https://discourse.vtk.org/).

If you are using ParaView, are you using the `Glyph` source or the `3D Glyph` representation ?

---

<div class="post-metadata">

### Author: ![nabilyounes](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/3d9bf3/32.png) [@nabilyounes](https://discourse.paraview.org/u/nabilyounes)
#### Post date: [August 22, 2022, 11:09am UTC](https://discourse.paraview.org/t/vtkglyphsource2d/10176/3 "2022-08-22T11:09:38Z")

</div>

Hello Nicolas, thank you for your reply  
I am using Glyph3D

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [August 22, 2022, 1:11pm UTC](https://discourse.paraview.org/t/vtkglyphsource2d/10176/4 "2022-08-22T13:11:04Z")

</div>

It seems that you cannot control the circle resolution directly.  
So what you need is:

- create a `Disk` from the `Source` menu. Setup the resolution you want and maybe other properties (radius will not matter here)
- on your dataset, apply the `Glyph with Custom Source` filter, and use your disk as `Glyph Source`

- **OR** use the `3D Glyph` representation and instead of `2D glyph`, select `pipeline connection` and choose your disk
