Generating 3D geometry object with different base and top geometry

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.