# \#mesh

**URL:** https://discourse.julialang.org/tag/mesh/333.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [\[ANN\] KaimonSlate.jl: a reactive environment for ambitious work](https://discourse.julialang.org/t/ann-kaimonslate-jl-a-reactive-environment-for-ambitious-work/139185)

<div class="topic-metadata">

**Author:** [@kahliburke](https://discourse.julialang.org/u/kahliburke)\
**Replies:** 23\
**Last updated:** [September 24, 2026, 11:27pm UTC](https://discourse.julialang.org/t/ann-kaimonslate-jl-a-reactive-environment-for-ambitious-work/139185 "2026-09-24T23:27:10Z")

</div>

I’ve been building KaimonSlate.jl, a reactive computing environment for Julia, for a while now. It’s fully available in General, and I’d like to take a quick tour of it here. Julia got rid of the two-language problem. S…

---

## [\[ANN\] Meshes.jl - Computational Geometry in Julia](https://discourse.julialang.org/t/ann-meshes-jl-computational-geometry-in-julia/53973)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 58\
**Last updated:** [April 9, 2026, 2:30pm UTC](https://discourse.julialang.org/t/ann-meshes-jl-computational-geometry-in-julia/53973 "2026-04-09T14:30:46Z")

</div>

Meshes.jl provides efficient implementations of concepts from computational geometry and finite element analysis. It promotes rigorous mathematical definitions of spatial discretizations (a.k.a. meshes) that are adequ…

---

## [Concave parameteric surface mesh generation](https://discourse.julialang.org/t/concave-parameteric-surface-mesh-generation/135375)

<div class="topic-metadata">

**Author:** [@Avina-cK](https://discourse.julialang.org/u/Avina-cK)\
**Replies:** 2\
**Last updated:** [February 1, 2026, 3:54pm UTC](https://discourse.julialang.org/t/concave-parameteric-surface-mesh-generation/135375 "2026-02-01T15:54:10Z")

</div>

I would like to generate a surface mesh, using a parametric function f(x,y,z) = (x-(z^2))^2 + y^2 + z^2-1. Generating points and creating a vertex list is not an issue. How would I create a proper topology, to then crea…

---

## [Refinement meshgrids](https://discourse.julialang.org/t/refinement-meshgrids/129982)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 3\
**Last updated:** [June 21, 2025, 12:07pm UTC](https://discourse.julialang.org/t/refinement-meshgrids/129982 "2025-06-21T12:07:24Z")

</div>

Hi, all. I am trying to plot the curves of potential 1/r on mesh grid xg and yg (xg and yg are 2d mesh grids, r = @. sqrt(xg^2 + yg^2)). I want to solve the curves where the potential equals 1. I want to refine the grid…

---

## [Mesh (ndgrid) to points list](https://discourse.julialang.org/t/mesh-ndgrid-to-points-list/129404)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 3\
**Last updated:** [May 28, 2025, 2:01pm UTC](https://discourse.julialang.org/t/mesh-ndgrid-to-points-list/129404 "2025-05-28T14:01:51Z")

</div>

Is there any quick method to generate position pairs (x,y) for each points from following mesh grid xg and yg? x = range(-2, 2, 50) y = range(-2, 2, 50) (xg, yg) = ndgrid(x, y) Finished with collect(zip(xg,yg))

---

## [General type of 2d arrays](https://discourse.julialang.org/t/general-type-of-2d-arrays/129394)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 1\
**Last updated:** [May 28, 2025, 4:46am UTC](https://discourse.julialang.org/t/general-type-of-2d-arrays/129394 "2025-05-28T04:46:05Z")

</div>

Hi, all. I am writing a function of 2d array, in which xg and yg are designed to be any format of n x n array. But I always encounter the errors of TypeError of xg and yg. Is there any widely general type of 2d array to…

---

## [How can I calculate the volume of a mesh?](https://discourse.julialang.org/t/how-can-i-calculate-the-volume-of-a-mesh/81450)

<div class="topic-metadata">

**Author:** [@thenry](https://discourse.julialang.org/u/thenry)\
**Replies:** 14\
**Last updated:** [March 10, 2025, 3:47pm UTC](https://discourse.julialang.org/t/how-can-i-calculate-the-volume-of-a-mesh/81450 "2025-03-10T15:47:50Z")

</div>

How can I calculate the volume of a mesh? The mesh is a closed triangles mesh, with 3-D coordinates; it is a surface mesh. I have tried the following, but I am getting an error: using GLMakie using FileIO using Mesh…

---

## [Order for finite elements when using Gridap and Gmsh](https://discourse.julialang.org/t/order-for-finite-elements-when-using-gridap-and-gmsh/125094)

<div class="topic-metadata">

**Author:** [@mikeliux](https://discourse.julialang.org/u/mikeliux)\
**Replies:** 9\
**Last updated:** [January 27, 2025, 8:22am UTC](https://discourse.julialang.org/t/order-for-finite-elements-when-using-gridap-and-gmsh/125094 "2025-01-27T08:22:18Z")

</div>

I am experimenting with Gridap package for solving partial differential equations (PDEs) in Julia. I am creating my meshes with GMSH, using the API provided by the Gmsh package in Julia. I save them as \*.msh files, and t…

---

## [Compute integral for DelaunayTriangulation.jl to be able to solve PDE with FiniteVolumeMethod.jl](https://discourse.julialang.org/t/compute-integral-for-delaunaytriangulation-jl-to-be-able-to-solve-pde-with-finitevolumemethod-jl/124310)

<div class="topic-metadata">

**Author:** [@B4rtel](https://discourse.julialang.org/u/B4rtel)\
**Replies:** 4\
**Last updated:** [January 2, 2025, 3:20pm UTC](https://discourse.julialang.org/t/compute-integral-for-delaunaytriangulation-jl-to-be-able-to-solve-pde-with-finitevolumemethod-jl/124310 "2025-01-02T15:20:13Z")

</div>

Hi :), I would like to solve a advection PDE of the form \\frac{\\partial}{\\partial t} f(x,t) = - \\nabla\_x \\cdot \\left(\\left(\\int \[\\phi(p\_1(x,y),\\phi(p\_2(x,y)\]\\odot (y-x) f(y,t) \\text{d} y\\right) f(x,t)\\right) for p\_a(x\_i…

---

## [Mesh 3D Creation](https://discourse.julialang.org/t/mesh-3d-creation/123414)

<div class="topic-metadata">

**Author:** [@Kamran\_Ali](https://discourse.julialang.org/u/Kamran_Ali)\
**Replies:** 4\
**Last updated:** [December 3, 2024, 4:33pm UTC](https://discourse.julialang.org/t/mesh-3d-creation/123414 "2024-12-03T16:33:41Z")

</div>

I have created a 3D Quad mesh for my model, created vertices and faces for bottom layer, top layer vertices, now i have to make it 3D, so if i apply the loft command, corner faces are created in the diagonal, issue is t…

---

## [Change mesh color in Plots.jl?](https://discourse.julialang.org/t/change-mesh-color-in-plots-jl/76625)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [October 31, 2024, 5:10pm UTC](https://discourse.julialang.org/t/change-mesh-color-in-plots-jl/76625 "2024-10-31T17:10:13Z")

</div>

I am trying to get a hold on Plots.jl capability to plot meshes. The mesh3d seems to be the good choice for that. With the following example, I manage to plot a uniformly colored mesh with the plotlyjs backed. using Pl…

---

## [There's a hole in a sphere generated by makie.surface](https://discourse.julialang.org/t/theres-a-hole-in-a-sphere-generated-by-makie-surface/118555)

<div class="topic-metadata">

**Author:** [@xczphysics](https://discourse.julialang.org/u/xczphysics)\
**Replies:** 8\
**Last updated:** [August 24, 2024, 5:38pm UTC](https://discourse.julialang.org/t/theres-a-hole-in-a-sphere-generated-by-makie-surface/118555 "2024-08-24T17:38:12Z")

</div>

Take a look at this Eye !!! Unlike mesh(spheremesh) method, current surface(x,y,z) method leaves a circular hole at the north pole of the ball, see: Transparent surfaces in Makie.jl - #2 by sdanisch CairoMakie inve…

---

## [Change MeshGrids to Arrays](https://discourse.julialang.org/t/change-meshgrids-to-arrays/115856)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 1:28pm UTC](https://discourse.julialang.org/t/change-meshgrids-to-arrays/115856 "2024-06-19T13:28:24Z")

</div>

I have two mesh grid xg =5×5 LazyGrids.GridUR{Int64, 1, 2}: \[1 1 1 1 1; 2 2 2 2 2; 3 3 3 3 3; 4 4 4 4 4; 5 5 5 5 5\] and yg =5×5 LazyGrids.GridUR{Int64, 1, 2}: \[1 1 1 1 1; 2 2 2 2 2; 3…

---

## [How to create adaptive meshes](https://discourse.julialang.org/t/how-to-create-adaptive-meshes/115837)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 0\
**Last updated:** [June 19, 2024, 1:03am UTC](https://discourse.julialang.org/t/how-to-create-adaptive-meshes/115837 "2024-06-19T01:03:23Z")

</div>

I have a gray scale picture, how can I make more points near the bright area and less grid in dark area?

---

## [2D examples of DistMesh.jl or other simple mesh generator?](https://discourse.julialang.org/t/2d-examples-of-distmesh-jl-or-other-simple-mesh-generator/114404)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 2\
**Last updated:** [May 17, 2024, 7:02pm UTC](https://discourse.julialang.org/t/2d-examples-of-distmesh-jl-or-other-simple-mesh-generator/114404 "2024-05-17T19:02:16Z")

</div>

Hi everyone. I am looking to generate some simple 2D meshes (triangles filling a big rectangle with some smaller square holes). I used for years the DistMesh for Matlab. Now I am trying to use the Julia port. There are …

---

## [Shape optimization in FEM](https://discourse.julialang.org/t/shape-optimization-in-fem/107635)

<div class="topic-metadata">

**Author:** [@rguerrab](https://discourse.julialang.org/u/rguerrab)\
**Replies:** 10\
**Last updated:** [February 16, 2024, 10:10pm UTC](https://discourse.julialang.org/t/shape-optimization-in-fem/107635 "2024-02-16T22:10:25Z")

</div>

Hi there, I have a feeling this may have been asked before but I can’t seem to find an answer online. The general question is: how can I compute the gradient of a function where the function depends on the solution of …

---

## [Integration of functions over geometries](https://discourse.julialang.org/t/integration-of-functions-over-geometries/81994)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 30\
**Last updated:** [February 3, 2024, 4:07pm UTC](https://discourse.julialang.org/t/integration-of-functions-over-geometries/81994 "2024-02-03T16:07:20Z")

</div>

Cross-posting from Zulip’s #meshes.jl channel… Does anyone know of a good reference for integration rules over different geometries? For example, to integrate a function f over a triangle, we can consider the surface i…

---

## [4D Meshing in julia](https://discourse.julialang.org/t/4d-meshing-in-julia/109239)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:58pm UTC](https://discourse.julialang.org/t/4d-meshing-in-julia/109239 "2024-01-26T22:58:31Z")

</div>

Hi there, Is there a julia package with the ability to generate 4d meshes (the 4th dimension being time). There are no strict requirements for the quality of the mesh (the elements do not have to be convex). Thank you…

---

## [Permutedims of a mesh (swapping the order of axes )](https://discourse.julialang.org/t/permutedims-of-a-mesh-swapping-the-order-of-axes/106042)

<div class="topic-metadata">

**Author:** [@gltchr](https://discourse.julialang.org/u/gltchr)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 5:54pm UTC](https://discourse.julialang.org/t/permutedims-of-a-mesh-swapping-the-order-of-axes/106042 "2023-11-10T17:54:56Z")

</div>

Hello, I want to read several geometries for visualisation from a list of .obj files, however their axes are arranged in the wrong order (y,z,x) in my frame of reference. Goal: permute dimensions of a mesh. The mesh l…

---

## [Neighborhood information in Julia mesh Libraries](https://discourse.julialang.org/t/neighborhood-information-in-julia-mesh-libraries/97875)

<div class="topic-metadata">

**Author:** [@mm-crj](https://discourse.julialang.org/u/mm-crj)\
**Replies:** 11\
**Last updated:** [May 7, 2023, 10:25am UTC](https://discourse.julialang.org/t/neighborhood-information-in-julia-mesh-libraries/97875 "2023-05-07T10:25:07Z")

</div>

I have a mesh in msh format from Gmsh. I am importing it to Julia via Gmsh.jl. I need information about the neighbours of each cell in the grid. However none of the Julia libraries seem to provide that information. I hav…

---

## [Plotting a mesh with transparency with MeshViz.jl](https://discourse.julialang.org/t/plotting-a-mesh-with-transparency-with-meshviz-jl/92002)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 1\
**Last updated:** [December 27, 2022, 12:05pm UTC](https://discourse.julialang.org/t/plotting-a-mesh-with-transparency-with-meshviz-jl/92002 "2022-12-27T12:05:30Z")

</div>

I have a mesh made with Meshes.jl and I plot it with MeshViz.jl. There’s a alpha parameter to set the transparency. When I use it, here is the result I obtain: How to solve this issue?

---

## [MeshViz/Makie is smoothing my colors](https://discourse.julialang.org/t/meshviz-makie-is-smoothing-my-colors/91993)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 3\
**Last updated:** [December 22, 2022, 11:23am UTC](https://discourse.julialang.org/t/meshviz-makie-is-smoothing-my-colors/91993 "2022-12-22T11:23:10Z")

</div>

Hello, I have a mesh of a torus, made with Meshes.jl. I assigned colors to the vertices in order to have a checkerboard texture: Nice but the mesh is not smooth, one can see the facets. I found that one can get the …

---

## [Meshing operations in Julia](https://discourse.julialang.org/t/meshing-operations-in-julia/87609)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 3\
**Last updated:** [November 17, 2022, 9:20am UTC](https://discourse.julialang.org/t/meshing-operations-in-julia/87609 "2022-11-17T09:20:20Z")

</div>

Is it possible to do following Meshlab operations using Meshes.jl or similar package ? model.meshing\_remove\_connected\_component\_by\_diameter() model.meshing\_remove\_connected\_component\_by\_face\_number() model.meshing\_remov…

---

## [Mesh Parametric Surface](https://discourse.julialang.org/t/mesh-parametric-surface/84579)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 4\
**Last updated:** [November 9, 2022, 12:04pm UTC](https://discourse.julialang.org/t/mesh-parametric-surface/84579 "2022-11-09T12:04:46Z")

</div>

I have a surface that can be described by f(u,v), and I would like to generate a mesh of this object (so that I can later put it in Blender/Paraview). Any guidelines on how to do it in Julia?

---

## [Recording an 3d mesh animation, not updating between frames](https://discourse.julialang.org/t/recording-an-3d-mesh-animation-not-updating-between-frames/89428)

<div class="topic-metadata">

**Author:** [@m\_x155](https://discourse.julialang.org/u/m_x155)\
**Replies:** 1\
**Last updated:** [October 28, 2022, 6:19am UTC](https://discourse.julialang.org/t/recording-an-3d-mesh-animation-not-updating-between-frames/89428 "2022-10-28T06:19:01Z")

</div>

Hi, I have some results from a simulation that represent a 3d surface object moving in time. When I try to record the mesh much like the example in the documentation I don’t seem to get the plot actually updating. It dis…

---

## [ConvexBodyProximityQueries False Collision Detection and Proximity](https://discourse.julialang.org/t/convexbodyproximityqueries-false-collision-detection-and-proximity/88249)

<div class="topic-metadata">

**Author:** [@karelispanagiotis](https://discourse.julialang.org/u/karelispanagiotis)\
**Replies:** 2\
**Last updated:** [October 9, 2022, 12:36pm UTC](https://discourse.julialang.org/t/convexbodyproximityqueries-false-collision-detection-and-proximity/88249 "2022-10-09T12:36:20Z")

</div>

I have been using the package ConvexBodyProximityQueries and I cannot find the reason why it fails to calculate the distance between the following 3D Triangles. If I reverse the arguments order, I get the correct answer…

---

## [GLMakie \`recordframe!\` not working with \`MeshViz\`](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 6\
**Last updated:** [September 8, 2022, 11:15am UTC](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921 "2022-09-08T11:15:46Z")

</div>

I implemented a cloth-simulation algorithm in Julia and visualized the results using MeshViz and GLMakie. The GUI worked fluently and here are some screenshots: The problem is that I was unable to record a movie. …

---

## [Finding points in a Delaunay triangulation](https://discourse.julialang.org/t/finding-points-in-a-delaunay-triangulation/71154)

<div class="topic-metadata">

**Author:** [@jmaffi](https://discourse.julialang.org/u/jmaffi)\
**Replies:** 14\
**Last updated:** [February 16, 2022, 9:26pm UTC](https://discourse.julialang.org/t/finding-points-in-a-delaunay-triangulation/71154 "2022-02-16T21:26:45Z")

</div>

Hello everyone, Is there a specific package/function that computes the id’s of the simplices that contain a given (probably large) set of points in a n-d Delaunay triangulation? Something equivalent to Matlab’s tsearchn …

---

## [Making a triangular plot](https://discourse.julialang.org/t/making-a-triangular-plot/75802)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 4\
**Last updated:** [February 4, 2022, 3:49pm UTC](https://discourse.julialang.org/t/making-a-triangular-plot/75802 "2022-02-04T15:49:46Z")

</div>

In MATLAB there is a function triplot (2-D triangular plot - MATLAB triplot) which can be used to make a triangular plot given a connectivity matrix and the corresponding (x, y) values. Is there a similar function in Jul…

---

## [3D plotting packages](https://discourse.julialang.org/t/3d-plotting-packages/75445)

<div class="topic-metadata">

**Author:** [@RickandMortyforever](https://discourse.julialang.org/u/RickandMortyforever)\
**Replies:** 25\
**Last updated:** [January 31, 2022, 2:05pm UTC](https://discourse.julialang.org/t/3d-plotting-packages/75445 "2022-01-31T14:05:47Z")

</div>

Hello, Guys! I am playing with images right now. Is there a way I can plot a 3D image of RBG? There must be I think.(cuz Julia is awesome!) I’ve tried this code to see what are the combinations. But I really like to…

[Next page](https://discourse.julialang.org/tag/mesh/333.md?match_all_tags=true&page=1&tags%5B%5D=mesh)
