# 3D Quickhull with Babylon

**URL:** <https://forum.babylonjs.com/t/3d-quickhull-with-babylon/22635>\
**Category:** Demos and projects\
**Tags:** github\
**Created:** [July 27, 2021, 5:43pm UTC](https://forum.babylonjs.com/t/3d-quickhull-with-babylon/22635 "2021-07-27T17:43:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [July 27, 2021, 5:43pm UTC](https://forum.babylonjs.com/t/3d-quickhull-with-babylon/22635/1 "2021-07-27T17:43:03Z")

</div>

Hello there!

I’ve been building this as one of my assignments for my Computational Geometry class, and I figured it wouldn’t hurt sharing it here!

[https://carolhmj.github.io/quickhull-3d/](https://carolhmj.github.io/quickhull-3d/)

As the title states, it’s an implementation of the 3D Quickhull algorithm, both on some random point clouds constructed with the PointsCloudSystem, and with a predetermined “model” made out of convex shapes (which was a requirement from the class). In both cases, you just need to press the “Run Quickhull algorithm” button to build the convex hull from the set of points, and the “Show quickhull execution” one to see a simple animation of the hull forming! (which was my favourite part to do). The code is available here: [GitHub - carolhmj/quickhull-3d: Implementation and visualization of the Quickhull 3D algorithm for the Computational Geometry discipline](https://github.com/carolhmj/quickhull-3d) for any reference.

Thanks for reading!

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [July 27, 2021, 6:25pm UTC](https://forum.babylonjs.com/t/3d-quickhull-with-babylon/22635/2 "2021-07-27T18:25:34Z")

</div>

Wow, this is so great!!

I didn’t dive into the code too much, just wondering - if someone wants to integrate this into their project (GPL 3.0 FTW! :-)), what would be the best way to do that? is the Quickhull3D class enough (of course while providing the other needed modules)?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [July 27, 2021, 10:57pm UTC](https://forum.babylonjs.com/t/3d-quickhull-with-babylon/22635/3 "2021-07-27T22:57:36Z")

</div>

The Quickhull3D class plus the accompanying Face and Half-Edge classes should be all that’s needed, along with Babylon. There is still a loooot that can be improved on the code, though! 😅

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [July 28, 2021, 7:14am UTC](https://forum.babylonjs.com/t/3d-quickhull-with-babylon/22635/4 "2021-07-28T07:14:44Z")

</div>

Thanks! I am sure the community can benefit from your project. So much to learn 🙂

> [@carolhmj](#):
>
> There is still a loooot that can be improved on the code

Isn’t there always? 🙂

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [October 20, 2025, 5:24am UTC](https://forum.babylonjs.com/t/3d-quickhull-with-babylon/22635/5 "2025-10-20T05:24:19Z")

</div>

Yo @carolhmj Have you got this implemented in BabylonJS Yet ?

I am looking to convex the hull of a complex staircase mesh at runtime, do you can any example using the lib in babylon js ?
