# Structured mesh from keyword triangulate

**URL:** https://community.freefem.org/t/structured-mesh-from-keyword-triangulate/3020
**Category:** General Discussion
**Created:** [March 7, 2024, 12:54pm UTC](https://community.freefem.org/t/structured-mesh-from-keyword-triangulate/3020 "2024-03-07T12:54:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![larismartins](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/larismartins/32/2712_2.png) [@larismartins](https://community.freefem.org/u/larismartins)
#### Post date: [March 7, 2024, 12:54pm UTC](https://community.freefem.org/t/structured-mesh-from-keyword-triangulate/3020/1 "2024-03-07T12:54:17Z")

</div>

Hi, me again.

I’m using the `triangulate` function to generate a mesh from a set of points, but the mesh that this function returns has its elements with a huge difference between hmax and hmin, for example:

 ![Screenshot from 2024-03-07 12-45-29](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/e/e8a9e3ce8b0a99b82bf03832da2f9b5f7cfcbba0.png)

Is there a way to homogenize this mesh? I’m also using `trunc` after triangulate, something like this:

```auto
Th = triangulate(fileName);
Th = trunc(Th, 1, split=4);

```

but hmax it’s still to huge. The ideal would be a mesh that respect the distance between the points from the file.

Do you guys know some function in FreeFem that I can use?

---

<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: [March 8, 2024, 5:37pm UTC](https://community.freefem.org/t/structured-mesh-from-keyword-triangulate/3020/2 "2024-03-08T17:37:25Z")

</div>

Yes triangulate is create a Delaunay mesh from a set of point  
It is not the good tool for problem

You can add internal point to break big triangle ou use an over function like ?
