# Create 2D Hexagon

**URL:** https://discourse.paraview.org/t/create-2d-hexagon/5321
**Category:** ParaView Support
**Created:** [September 11, 2020, 12:37pm UTC](https://discourse.paraview.org/t/create-2d-hexagon/5321 "2020-09-11T12:37:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sasha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sasha/32/4905_2.png) [@Sasha](https://discourse.paraview.org/u/Sasha)
#### Post date: [September 11, 2020, 12:37pm UTC](https://discourse.paraview.org/t/create-2d-hexagon/5321/1 "2020-09-11T12:37:49Z")

</div>

I’m new to using Paraview and VTK, so I might be completely off here - but is there any way to create a 2D hexagon in Paraview? Currently, I’m creating the vtu file using the following code:

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

This successfully creates the hexagon, and everything looks good when viewed from a Wireframe perspective:

![wireframe](https://discourse.paraview.org/uploads/default/original/2X/8/81781f5595c8b1b305ec40c21e615d7943f29406.png)

However, when I look from the ‘Surface With Edges’ representation, there are extra edges through the middle of the hexagon:

![surface_edges](https://discourse.paraview.org/uploads/default/original/2X/5/516de4545285357ebedfef930a763746050f9ced.png)

I want to represent the hexagon in Paraview as a surface with edges, but only the edges on the outside of the hexagon. I assume this is an issue with my code, but I’m not sure how else to create the hexagon. Is there any way to do this? Thanks a lot

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 14, 2020, 9:35am UTC](https://discourse.paraview.org/t/create-2d-hexagon/5321/2 "2020-09-14T09:35:47Z")

</div>

Looks like your points are not in the right order.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [September 15, 2020, 2:52pm UTC](https://discourse.paraview.org/t/create-2d-hexagon/5321/3 "2020-09-15T14:52:35Z")

</div>

You can create a **Sphere** source with Theta Resolution and Phi Resolution both set to 4. Then, **Slice** it with the default settings. That produces a hexagon.
