# GET 3D CONVEX HULL FROM Cartesian3 points

**URL:** <https://community.cesium.com/t/get-3d-convex-hull-from-cartesian3-points/7582>\
**Category:** CesiumJS\
**Created:** [October 19, 2018, 8:30am UTC](https://community.cesium.com/t/get-3d-convex-hull-from-cartesian3-points/7582 "2018-10-19T08:30:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surajit\_Chowbey1](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@Surajit\_Chowbey1](https://community.cesium.com/u/Surajit_Chowbey1)\
**Post date:** [October 19, 2018, 8:30am UTC](https://community.cesium.com/t/get-3d-convex-hull-from-cartesian3-points/7582/1 "2018-10-19T08:30:55Z")

</div>

hello,

Is there any way to get 3D convex hull from Cartesian3 Points?

I’m using Cesium 1.50.

Similar kind of function available in three JS,

example link : [https://threejs.org/examples/webgl\_geometry\_convex.html](https://threejs.org/examples/webgl_geometry_convex.html)

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [October 22, 2018, 4:01pm UTC](https://community.cesium.com/t/get-3d-convex-hull-from-cartesian3-points/7582/2 "2018-10-22T16:01:35Z")

</div>

You should be able to just compute this the same way Threejs does. If you look at the source of this example:

[https://github.com/mrdoob/three.js/blob/master/examples/webgl\_geometry\_convex.html](https://github.com/mrdoob/three.js/blob/master/examples/webgl_geometry_convex.html)

You’ll see that they use the QuickHull library:

[https://github.com/mauriciopoppe/quickhull3d](https://github.com/mauriciopoppe/quickhull3d)

Which you can use as well. I believe it would give you an output as a list of triangle faces. To draw it in Cesium you’d have to construct a custom geometry instance:

[https://cesiumjs.org/Cesium/Build/Documentation/Geometry.html](https://cesiumjs.org/Cesium/Build/Documentation/Geometry.html)
