Generating 3D geometry object with different base and top geometry

Hi there,

in my Cesium project i want to create object with different top and base geometry? Or different geometry in every level. I have always same number of points in level. Now i must create polygon from points and give him height, but there are many polygons and doesnt look it good.

example - 1. actual, 2. and 3. is what i looking for

Thanks you for your reply.

How are you currently creating it? Can you share a code example or Sandcastle (see How to share custom Sandcastle examples) ?

You may need to create custom geometry with the primitive API, or generate this geometry outside of CesiumJS and load it as a glTF.

Hi,
there is sandcastle sandcastle geometry example