# \#meshes

**URL:** https://discourse.julialang.org/tag/meshes/1033.md

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

---

## [Issubset gives error for this Hexahedron](https://discourse.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 2\
**Last updated:** [October 22, 2025, 1:07pm UTC](https://discourse.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346 "2025-10-22T13:07:12Z")

</div>

In this code m ⊆ m2 should output either true or false. using Meshes m = Hexahedron((0.1547376288700546, 0.05921552849426126, 1.7379087983473205), (0.17193069874450512, 0.05921552849426126, 1.7379087983473205), (0.1719…

---

## [Hexahedron volume plot](https://discourse.julialang.org/t/hexahedron-volume-plot/131489)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 6\
**Last updated:** [September 21, 2025, 11:49am UTC](https://discourse.julialang.org/t/hexahedron-volume-plot/131489 "2025-09-21T11:49:26Z")

</div>

How to volume plot a Hexahedron :ice: for colors given at each vertices? using Meshes, CoordRefSystems ,GLMakie, LinearAlgebra, Unitful r = Float32\[1.6, 1.754088, 1.9230156, 2.1082115, 2.311243, 2.5338273, 2.7778475, …

---

## [Adjacent elements of a Vertex in Meshes.jl](https://discourse.julialang.org/t/adjacent-elements-of-a-vertex-in-meshes-jl/131900)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 2\
**Last updated:** [August 29, 2025, 9:13pm UTC](https://discourse.julialang.org/t/adjacent-elements-of-a-vertex-in-meshes-jl/131900 "2025-08-29T21:13:37Z")

</div>

How to get the adjacent elements of a vertex in Meshes.jl ? using Meshes, CoordRefSystems ,GLMakie r = Float32\[1.6, 1.754088, 1.9230156, 2.1082115, 2.311243, 2.5338273, 2.7778475, 3.0453684, 3.3386526, 3.6601818, 4.01…

---

## [Viz!( ) Color mapping on many grids](https://discourse.julialang.org/t/viz-color-mapping-on-many-grids/131423)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [August 11, 2025, 11:28pm UTC](https://discourse.julialang.org/t/viz-color-mapping-on-many-grids/131423 "2025-08-11T23:28:04Z")

</div>

I am using Meshes.jl to create a polar coordinate grid. I have different grids with different r, ϕ and nrho values. I see that there color mapping is done for each grid individually. There is repetition of colors for eve…

---

## [Empty contour3d plot of Mesh](https://discourse.julialang.org/t/empty-contour3d-plot-of-mesh/131604)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 6\
**Last updated:** [August 16, 2025, 12:19pm UTC](https://discourse.julialang.org/t/empty-contour3d-plot-of-mesh/131604 "2025-08-16T12:19:57Z")

</div>

I want to get 3d contour plot of V values but i got empty plot. Here r, θ and ϕ are in spherical coordinates. I convert them to Cartessian coordinates X,Y and Z. using GLMakie f= Figure(size = (1000, 800)) ax = Axis3(f\[…

---

## [Spherical to cartesian coordinate transformation](https://discourse.julialang.org/t/spherical-to-cartesian-coordinate-transformation/131202)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 1\
**Last updated:** [August 4, 2025, 11:23am UTC](https://discourse.julialang.org/t/spherical-to-cartesian-coordinate-transformation/131202 "2025-08-04T11:23:48Z")

</div>

How to convert spherical coordinates points to Cartesian coordinates points? using Meshes, CoordRefSystems ,GLMakie, LinearAlgebra, Unitful r = Float32\[1.6, 1.754088, 1.9230156, 2.1082115, 2.311243, 2.5338273, 2.77784…

---

## [3D volume plot for spherical coordinate grid points](https://discourse.julialang.org/t/3d-volume-plot-for-spherical-coordinate-grid-points/129668)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 31\
**Last updated:** [July 7, 2025, 12:50pm UTC](https://discourse.julialang.org/t/3d-volume-plot-for-spherical-coordinate-grid-points/129668 "2025-07-07T12:50:47Z")

</div>

How to get volume plot for the following spherical coordinate positions? :child: I have a lot of blocks each having such r, θ and ϕ spherical coordinate position vectors and i want to create 3D volume plot for each bloc…

---

## [Repair(0) vs Repair(1) & creating color values](https://discourse.julialang.org/t/repair-0-vs-repair-1-creating-color-values/130580)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 11:16pm UTC](https://discourse.julialang.org/t/repair-0-vs-repair-1-creating-color-values/130580 "2025-07-10T23:16:56Z")

</div>

I want to get smooth(interpolated) color mapping for elements but it is not supported in GLMakie.jl. So i am converting cell body values(color) to vertices values. I am taking vertex value to be equal to average of surro…

---

## [Out of memory error in \`viz\` of 3D \`RectilinearGrid\` from Meshes.jl](https://discourse.julialang.org/t/out-of-memory-error-in-viz-of-3d-rectilineargrid-from-meshes-jl/128643)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 33\
**Last updated:** [May 31, 2025, 7:30pm UTC](https://discourse.julialang.org/t/out-of-memory-error-in-viz-of-3d-rectilineargrid-from-meshes-jl/128643 "2025-05-31T19:30:03Z")

</div>

I want to plot a grid using Meshes.jl and GLMakie.jl. I am reading the HDF5 data file output of Athena++ astrophysical code using HDF5.jl library. In Athena++ mesh grid is divided into smaller parts called Blocks to use…

---

## [How can I generate a 3D annulus surface and mesh it using Meshes.jl?](https://discourse.julialang.org/t/how-can-i-generate-a-3d-annulus-surface-and-mesh-it-using-meshes-jl/110949)

<div class="topic-metadata">

**Author:** [@xiaoming](https://discourse.julialang.org/u/xiaoming)\
**Replies:** 7\
**Last updated:** [May 27, 2025, 11:46am UTC](https://discourse.julialang.org/t/how-can-i-generate-a-3d-annulus-surface-and-mesh-it-using-meshes-jl/110949 "2025-05-27T11:46:18Z")

</div>

I have tried using PolyArea. Here is MME: ring1=Meshes.Ring(\[(cos(t),sin(t),0) for t in 0.1:0.1:2pi\]) ring2=Meshes.Ring(\[(2cos(t),2sin(t),0) for t in 0.1:0.1:2pi\]) annulus = PolyArea(\[ring2, ring1\]) discretize(annulus, …

---

## [FE Discretisation for embedded cables](https://discourse.julialang.org/t/fe-discretisation-for-embedded-cables/127025)

<div class="topic-metadata">

**Author:** [@Br0BOLE](https://discourse.julialang.org/u/Br0BOLE)\
**Replies:** 13\
**Last updated:** [March 18, 2025, 10:12pm UTC](https://discourse.julialang.org/t/fe-discretisation-for-embedded-cables/127025 "2025-03-18T22:12:38Z")

</div>

Hi there, I’m trying to automate the discritization of FE meshes for High voltage cables embedded in the ground. This is to conduct thermal analysis and parameterise the geometry of the cable (cables with tri cores). I…

---

## [Contour plot on Structured grid using Meshes.jl](https://discourse.julialang.org/t/contour-plot-on-structured-grid-using-meshes-jl/123854)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [January 19, 2025, 6:18pm UTC](https://discourse.julialang.org/t/contour-plot-on-structured-grid-using-meshes-jl/123854 "2025-01-19T18:18:18Z")

</div>

In Julia i am using Meshes.jl and GLMakie.jl . I am using x , z, alfsurf and psi variables of size (109,50) each. I input them to StructuredGrid() function which creates a structured grid of size (108,49). using Meshe…

---

## [How to get the vector of vertices and connectivity](https://discourse.julialang.org/t/how-to-get-the-vector-of-vertices-and-connectivity/124563)

<div class="topic-metadata">

**Author:** [@Mizu49](https://discourse.julialang.org/u/Mizu49)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 1:43am UTC](https://discourse.julialang.org/t/how-to-get-the-vector-of-vertices-and-connectivity/124563 "2025-01-10T01:43:53Z")

</div>

How can I obtain the vectors of the vertices and connectivity from the primitive geometry defined by Meshes.jl? julia\> b = Meshes.Box((0.0, 0.0, 0.0), (1.0, 1.0, 1.0)) Box ├─ min: Point(x: 0.0 m, y: 0.0 m, z: 0.0 m) └─…

---

## [Can I put non-primitive geometries into a GeometrySet?](https://discourse.julialang.org/t/can-i-put-non-primitive-geometries-into-a-geometryset/121102)

<div class="topic-metadata">

**Author:** [@Jfschue](https://discourse.julialang.org/u/Jfschue)\
**Replies:** 8\
**Last updated:** [October 10, 2024, 12:46am UTC](https://discourse.julialang.org/t/can-i-put-non-primitive-geometries-into-a-geometryset/121102 "2024-10-10T00:46:25Z")

</div>

If I put a SimpleMesh geometry into a GeometrySet, I get a StackOverflowError: using Meshes # test using primitive geometries s1 = Meshes.Sphere((0, 0, 0), 1) s2 = Meshes.Sphere((1, 1, 1), 1) gs1 = GeometrySet(\[s1, s2\]…

---

## [How to use convexhull in Meshes.jl?](https://discourse.julialang.org/t/how-to-use-convexhull-in-meshes-jl/119440)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 4\
**Last updated:** [September 15, 2024, 7:58pm UTC](https://discourse.julialang.org/t/how-to-use-convexhull-in-meshes-jl/119440 "2024-09-15T19:58:22Z")

</div>

I found the convexhull function in Meshes.jl: convexhull doc The docs description “Convex hull of object.” I have a vector of 2d points: julia\> points 1000-element Vector{Vector{Float64}}: \[0.5090075873973284, 0.793…

---

## [Geospatial Software Development at Arpeggeo®](https://discourse.julialang.org/t/geospatial-software-development-at-arpeggeo/119215)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [September 9, 2024, 11:21am UTC](https://discourse.julialang.org/t/geospatial-software-development-at-arpeggeo/119215 "2024-09-09T11:21:11Z")

</div>

Description We are seeking a highly skilled and motivated Software Engineer to join our team, focusing on the development of cutting-edge geospatial software solutions. The ideal candidate will have strong expertise in G…

---

## [Mesh3d facecolor](https://discourse.julialang.org/t/mesh3d-facecolor/118294)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 3\
**Last updated:** [August 17, 2024, 4:45pm UTC](https://discourse.julialang.org/t/mesh3d-facecolor/118294 "2024-08-17T16:45:08Z")

</div>

I am trying to change the facecolor. Part of the issue is that I have a limited understanding of the various backends to Plots.jl . The same issue was raised here at various occasions. I continue to struggle. x = \[0, 1,…

---

## [Visualization of shapefile - Meshes.jl viz! very slow](https://discourse.julialang.org/t/visualization-of-shapefile-meshes-jl-viz-very-slow/114485)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 21\
**Last updated:** [June 1, 2024, 2:28am UTC](https://discourse.julialang.org/t/visualization-of-shapefile-meshes-jl-viz-very-slow/114485 "2024-06-01T02:28:27Z")

</div>

Hi. I am switching from using a low resolution GeoJSON file of the entire world (size 23 MB), which was used in the example given by GeoMakie, to a higher resolution shapefile of two countries (using Meshes I merged FRA\_…

---

## [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 …

---

## [Understanding Meshes and GeoTables visualisation capabilities](https://discourse.julialang.org/t/understanding-meshes-and-geotables-visualisation-capabilities/110353)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 13\
**Last updated:** [April 11, 2024, 12:47pm UTC](https://discourse.julialang.org/t/understanding-meshes-and-geotables-visualisation-capabilities/110353 "2024-04-11T12:47:35Z")

</div>

I’m currently testing Meshes.jl and GeoTables to see if they can be useful for my finite element analyses. Part of the logic still feels a bit weird to me (attaching data to a topology feels a bit restrictive, but that i…

---

## [Contour goes out of grid in Meshes.jl](https://discourse.julialang.org/t/contour-goes-out-of-grid-in-meshes-jl/112187)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 0\
**Last updated:** [March 27, 2024, 3:48pm UTC](https://discourse.julialang.org/t/contour-goes-out-of-grid-in-meshes-jl/112187 "2024-03-27T15:48:06Z")

</div>

I am using Meshes.jl and GLMakie.jl for plotting on irregular grid. Contour of psi\[1,:,:\] (red lines) goes out of the circular sector. I want to apply contour on this irregular grid (circular sector). begin grid = S…

---

## [Understanding how KNearestSearch works](https://discourse.julialang.org/t/understanding-how-knearestsearch-works/111294)

<div class="topic-metadata">

**Author:** [@xiaoming](https://discourse.julialang.org/u/xiaoming)\
**Replies:** 5\
**Last updated:** [March 7, 2024, 3:15pm UTC](https://discourse.julialang.org/t/understanding-how-knearestsearch-works/111294 "2024-03-07T15:15:55Z")

</div>

I have a surface in three-dimensional space composed of triangles generated by Meshes.jl. Given a point in space, the function ‘search’ in Meshes.jl can find the closest triangle to this point. I want to know how this di…

---

## [Issue with Live Plotting 3D Objects using Meshes.jl, Observables, and GLMakie: Bound Error on Item Removal](https://discourse.julialang.org/t/issue-with-live-plotting-3d-objects-using-meshes-jl-observables-and-glmakie-bound-error-on-item-removal/111253)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 7:20pm UTC](https://discourse.julialang.org/t/issue-with-live-plotting-3d-objects-using-meshes-jl-observables-and-glmakie-bound-error-on-item-removal/111253 "2024-03-06T19:20:18Z")

</div>

I’ve been exploring the use of Meshes.jl in combination with Observables and GLMakie for live plotting of 3D objects. My goal is to dynamically update a plot by adding or removing 3D objects (like Box or Ball) and visual…

---

## [Makie: Isosurface colored by values from another array](https://discourse.julialang.org/t/makie-isosurface-colored-by-values-from-another-array/105318)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 26\
**Last updated:** [October 25, 2023, 10:59am UTC](https://discourse.julialang.org/t/makie-isosurface-colored-by-values-from-another-array/105318 "2023-10-25T10:59:00Z")

</div>

I have two 3D arrays. I would like to make an isosurface from the first one and color it using the values of the second array. As far as I understand, a possible solution would be to construct a mesh for the isosurface (…

---

## [Calculating the 3d volume between arbitrary planes](https://discourse.julialang.org/t/calculating-the-3d-volume-between-arbitrary-planes/101793)

<div class="topic-metadata">

**Author:** [@Gavin\_Held](https://discourse.julialang.org/u/Gavin_Held)\
**Replies:** 8\
**Last updated:** [July 19, 2023, 8:39pm UTC](https://discourse.julialang.org/t/calculating-the-3d-volume-between-arbitrary-planes/101793 "2023-07-19T20:39:10Z")

</div>

Hello, So I am trying to find an efficient way to calculate the volume between planes (e.g. the ones in the image). The planes are not parallel with one another, and I have not found any resources online that have be…

---

## [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…

---

## [Interpolate a 3D array](https://discourse.julialang.org/t/interpolate-a-3d-array/93885)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 19\
**Last updated:** [February 3, 2023, 6:58pm UTC](https://discourse.julialang.org/t/interpolate-a-3d-array/93885 "2023-02-03T18:58:04Z")

</div>

If I have a 3D array along with a unit normal vector and point for a plane that intersects that array, how would I use Interpolations.jl to create a new 3D array that is the same size as the original array but where all …

---

## [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 generation](https://discourse.julialang.org/t/mesh-generation/82263)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 16\
**Last updated:** [September 16, 2022, 1:04pm UTC](https://discourse.julialang.org/t/mesh-generation/82263 "2022-09-16T13:04:01Z")

</div>

Dear all, I would like to know if there exists a generic mesh generator (2D/3D) that allows for: in 2D: the use either triangles or quadrangles controlling order of elements including regional attributes to elements r…

---

## [Error: I cannot install package Meshes](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051)

<div class="topic-metadata">

**Author:** [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Replies:** 8\
**Last updated:** [July 11, 2022, 7:34pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051 "2022-07-11T19:34:20Z")

</div>

Hi, I’m a new user and I have had problems with scripts that use the command Point3f, Point2f and others to generate plots. Well, apparently, the problem is caused by errors in packages installation. I uninstalled the Ju…

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