Arbitrary Geometry Shape

I have a set of Cartesian3 coordinates, i.e. three arrays of x, y and z values. These values define an arbitrary 3d shape. How can I draw such shape on Cesium using geometry api?


For example, if I want to draw a parabola with its x, y ,z values, how to realize it on Cesium?

Hi there,

You can create a custom 3D geometry object as a part of a Primitive object, as detailed in our Geometry and Appearances tutorial:

In order to create a custom geometry type, check out our wiki page on geometry:

Let us know if you need more help with this.

Hope that helps,

  • Rachel

Thanks Rachel!
I will take a took at "custom geometry type".
I thinking to generate the 3d shape as an .obj file then convert to .glb and load to Cesium entity as a model.

Converting the 3d shape will probably be easier (depending on your end use case).

If you can generate an obj, you can use the obj2gltf converter to use your model with Cesium:

Hope that helps,

  • Rachel

I found this tool. It might solve my problem. Thanks!