# Delaunay Triangularization

**URL:** https://discourse.julialang.org/t/delaunay-triangularization/36172
**Category:** Geo
**Created:** [March 19, 2020, 2:04am UTC](https://discourse.julialang.org/t/delaunay-triangularization/36172 "2020-03-19T02:04:27Z")
**Posts on this page:** 1
**Page:** 2

<div class="post-metadata">

### Author: ![Donald\_Lacombe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/donald_lacombe/32/13500_2.png) [@Donald\_Lacombe](https://discourse.julialang.org/u/Donald_Lacombe)
#### Post date: [January 4, 2022, 1:55am UTC](https://discourse.julialang.org/t/delaunay-triangularization/36172/21 "2022-01-04T01:55:26Z")

</div>

I have an update regarding the Delaunay issue in Julia. I found a website with some code that calculates the Delaunay triangularization here:

[Delaunay Docs](https://docs.juliahub.com/Delaunay/3WoAO/1.0.0/)

The example for 2D worked on my issue and the code is here in case anyone is interested:

```julia
using Delaunay
x = [0.8147;0.9058;0.1270;0.9134;0.6324]
y = [0.0975;0.2785;0.5469;0.9575;0.9649]
points = hcat(x,y)
mesh = delaunay(points)

mesh.points # the points
mesh.simplices # the simplices (triangles in 2d)
mesh.neighbors # neighbouring simplices of a simplex
mesh.vertex_to_simplex # find a simplex for a poin
mesh.convex_hull # convex hull of the domain

```

The output I was looking for is in the mesh.simplices attribute:

```julia
julia> mesh.simplices
3×3 Matrix{Int64}:
 1 2 3
 2 5 3
 5 2 4

```

I also wanted to let people know that I am working on a Windows machine.  
Thanks again for all of the help as it is much appreciated.

[Previous page](https://discourse.julialang.org/t/delaunay-triangularization/36172.md?page=1)
