How to scale a geometry

Hi all,

I do not have much experience with Cesium. Can anybody guide me how to scale a geometry in cesium ?

If it’s a 3D model, you can set its scale property (see

Otherwise, if it’s a polygon or another custom shape like that created with the Entity system, I think you’ll have to compute the new coordinates yourself or use a library like TurfJS to do it before feeding it into CesiumJS:

If I want to change the scale by dragging the vertices of the geometry, how to do it ?

Vào 02:11:44 UTC+7 Thứ Năm, ngày 13 tháng 6 năm 2019, Omar Shehata đã viết:

Do you mean something like the transform editor video shown here?

You could build this widget yourself in CesiumJS, or if you upload your data to tile it into 3D Tiles on Cesium ion ( you could use the tileset adjust tool to do this.

Just to clarify, those transform editor tools on that page are available to use with a commercial license of Cesium ion, but aren’t part of the open source CesiumJS.