# Triangulate.jl - Generating a triangle grid using Triangulate

**URL:** <https://discourse.julialang.org/t/triangulate-jl-generating-a-triangle-grid-using-triangulate/139023>\
**Category:** Geo\
**Created:** [August 24, 2026, 3:17pm UTC](https://discourse.julialang.org/t/triangulate-jl-generating-a-triangle-grid-using-triangulate/139023 "2026-08-24T15:17:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![omgplshelp](https://avatars.discourse-cdn.com/v4/letter/o/e9c0ed/32.png) [@omgplshelp](https://discourse.julialang.org/u/omgplshelp)\
**Post date:** [August 24, 2026, 3:17pm UTC](https://discourse.julialang.org/t/triangulate-jl-generating-a-triangle-grid-using-triangulate/139023/1 "2026-08-24T15:17:16Z")

</div>

Hi, I’m trying to generate an unstructured triangle grid using Triangulate.jl with coordinate data specifying layer boundaries and measuring points within those boundaries.

I’ve tried just about every bit of example code I can find online but somehow have never ended up with an actual plot output. The code functions run without error, but it never displays anything afterwards.

I’m intending to use GLMakie as a plotting backend. Is there any place within the code I need to specify this for it to actually create the plot?

I’m simply confused as to why, even in examples with provided data, I never end up with a plot in a separate window, even though no errors occur in the code.

Any help is greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![ziolai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ziolai/32/23422_2.png) [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Post date:** [August 24, 2026, 3:37pm UTC](https://discourse.julialang.org/t/triangulate-jl-generating-a-triangle-grid-using-triangulate/139023/2 "2026-08-24T15:37:00Z")

</div>

Not sure.

Does the mesh generation cause any output to screen?

Do you output files (.ploy, .node or .ele) being created?

---

<div class="post-metadata">

**Author:** ![omgplshelp](https://avatars.discourse-cdn.com/v4/letter/o/e9c0ed/32.png) [@omgplshelp](https://discourse.julialang.org/u/omgplshelp)\
**Post date:** [August 25, 2026, 1:10pm UTC](https://discourse.julialang.org/t/triangulate-jl-generating-a-triangle-grid-using-triangulate/139023/3 "2026-08-25T13:10:49Z")

</div>

There are no outputs visible on screen whatsoever. It just shows the checkmark telling me that the code ran, but there’s no popup window or other information in the terminal at all.

For reference, the following code was suggested to me for the initial problem. It’s from the Triangulate.jl examples on github, but I simply cannot figure out why it doesn’t display the output as shown in the example.

```julia-auto
function example_domain_bcdt_area(; maxarea = 0.05)
    triin = Triangulate.TriangulateIO()
    triin.pointlist = Matrix{Cdouble}([0.0 0.0; 1.0 0.0; 1.0 1.0; 0.6 0.6; 0.0 1.0]')
    triin.segmentlist = Matrix{Cint}([1 2; 2 3; 3 4; 4 5; 5 1]')
    triin.segmentmarkerlist = Vector{Int32}([1, 2, 3, 4, 5])
    area = @sprintf("%.15f", maxarea)
    (triout, vorout) = triangulate("pa$(area)DQ", triin)
    return plot_in_out(
        triin,
        triout;
        circumcircles = true,
    )
end;

```

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [August 25, 2026, 3:26pm UTC](https://discourse.julialang.org/t/triangulate-jl-generating-a-triangle-grid-using-triangulate/139023/4 "2026-08-25T15:26:59Z")

</div>

Since you posted it under the `Geo` tag, you may be interested in the GMT.jl alternatives

This one creates a spherical triangulation

```julia-auto
using GMT

D = sphtriangulate("@hotspots.txt", voronoi=:d, arcs=true)
imshow(D, region=:global, proj=:guess, frame=:afg, pen=3)

```

 ![GMTjl_j](https://global.discourse-cdn.com/julialang/original/3X/3/e/3e84650ba80d4891cbc9e1417472f09829fadbb8.png)

The [triangulate](https://www.generic-mapping-tools.org/GMTjl_doc/documentation/modules/triangulate.html) (also uses the Shewchuk’s triangulate program) page has Cartesian examples, but they are hypothetical.
