# Question about Voronoi Mesh Implementation in FreeFEM++ (2D)

**URL:** https://community.freefem.org/t/question-about-voronoi-mesh-implementation-in-freefem-2d/4247
**Category:** General Discussion
**Created:** [April 1, 2026, 2:48pm UTC](https://community.freefem.org/t/question-about-voronoi-mesh-implementation-in-freefem-2d/4247 "2026-04-01T14:48:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Monirul25](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/monirul25/32/3287_2.png) [@Monirul25](https://community.freefem.org/u/Monirul25)
#### Post date: [April 1, 2026, 2:48pm UTC](https://community.freefem.org/t/question-about-voronoi-mesh-implementation-in-freefem-2d/4247/1 "2026-04-01T14:48:21Z")

</div>

Dear FreeFEM++ Community,

I hope you are doing well.

I am currently working on a 2D numerical simulation and am interested in using a **Voronoi-type mesh** for my **HHO** problem. As far as I understand, FreeFEM++ primarily supports triangular (Delaunay) meshes in 2D, and there is no direct built-in functionality for generating **Voronoi meshes.**

I would like to ask for your guidance on the following points:

1. Is there any recommended approach within FreeFEM++ to construct or approximate a **Voronoi mesh** in 2D and 3D?.

2. Has anyone implemented the dual mesh (Voronoi diagram) from a Delaunay triangulation inside FreeFEM++?. If so, could you share an example or outline the method?.

3. Are there any scripts, plugins, or workflows (possibly involving external tools) that can generate **Voronoi meshes** and import them into FreeFEM++?.

If anyone has **sample code** , references, or suggestions, I would greatly appreciate your help.

Thank you very much for your time and support.

With best regards,  
Monirul

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [April 22, 2026, 12:47pm UTC](https://community.freefem.org/t/question-about-voronoi-mesh-implementation-in-freefem-2d/4247/2 "2026-04-22T12:47:23Z")

</div>

Be careful , in 2d no real problem because the Delaunay good for approximation (no sliver element)

The best way is to find a Delaunay masher in c++ and interface directly with freefem like a plugin. The only problem is the generation of points in 2d.

In 3d, it is an other story, due to sliver element ( completely flat tetrahedra with small inscribe sphere). To day freefem can play only with tets mesh no polytopics meshes, so you can not play with Voronoï mesh.

It is a huge work, and the numbers of problem is big.

I can say only “bon courage” in french.

---

<div class="post-metadata">

### Author: ![Monirul25](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/monirul25/32/3287_2.png) [@Monirul25](https://community.freefem.org/u/Monirul25)
#### Post date: [June 20, 2026, 3:01pm UTC](https://community.freefem.org/t/question-about-voronoi-mesh-implementation-in-freefem-2d/4247/3 "2026-06-20T15:01:16Z")

</div>

Sir, is there any way to incorporate **rectangular mesh discretization** in FreeFem++, or to use **a general polygonal mesh discretization**  **instead of a triangular mesh discretization**?.

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [August 27, 2026, 3:16pm UTC](https://community.freefem.org/t/question-about-voronoi-mesh-implementation-in-freefem-2d/4247/4 "2026-08-27T15:16:23Z")

</div>

non, this imply a complet rewriting of freefem.
