Hi,
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?
Thanks!
Hi,
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?
Thanks!
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: http://cesiumjs.org/tutorials/Geometry-and-Appearances/
In order to create a custom geometry type, check out our wiki page on geometry: https://github.com/AnalyticalGraphicsInc/cesium/wiki/Geometry-and-Appearances
Let us know if you need more help with this.
Hope that helps,
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: https://github.com/rahwang/obj2gltf
Hope that helps,
I found this tool. It might solve my problem. Thanks!