# Modeling elliptical geometries with Meshes.jl

**URL:** <https://discourse.julialang.org/t/modeling-elliptical-geometries-with-meshes-jl/106467>\
**Category:** Modelling & Simulations\
**Created:** [November 20, 2023, 2:27pm UTC](https://discourse.julialang.org/t/modeling-elliptical-geometries-with-meshes-jl/106467 "2023-11-20T14:27:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike.ingold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike.ingold/32/203749_2.png) [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Post date:** [November 20, 2023, 2:27pm UTC](https://discourse.julialang.org/t/modeling-elliptical-geometries-with-meshes-jl/106467/1 "2023-11-20T14:27:27Z")

</div>

Maybe this is a dumb question but is there a native method for defining ellipses/ellipsoids in **Meshes.jl**? I didn’t see anything in the docs, and from a quick perusal of the source it doesn’t seem like `Ball` or `Sphere` were intended to have their radii defined as vectors.

I’ve been thinking about working around this with a local method like

```plaintext
ellipsoid(a,b,c) = Meshes.Stretch(a,b,c)(Meshes.Sphere(center,1))

```

but am I missing something obvious?

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [November 20, 2023, 2:34pm UTC](https://discourse.julialang.org/t/modeling-elliptical-geometries-with-meshes-jl/106467/2 "2023-11-20T14:34:40Z")

</div>

There is an open issue to add the Ellispsoid primitive. We are working on other more urgent features, but contributions are very welcome.

In the meantime you can discretize the Sphere and apply the Stretch.

---

<div class="post-metadata">

**Author:** ![mike.ingold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike.ingold/32/203749_2.png) [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Post date:** [November 20, 2023, 2:42pm UTC](https://discourse.julialang.org/t/modeling-elliptical-geometries-with-meshes-jl/106467/3 "2023-11-20T14:42:02Z")

</div>

Ah! I didn’t catch that it was listed under [Add more geometries · Issue #349 · JuliaGeometry/Meshes.jl · GitHub](https://github.com/JuliaGeometry/Meshes.jl/issues/349)
