Ellipsoid entity create symmetric cone cut out on top and bottom

Hey,

I am playing around with this sandcastle demo: Cesium Sandcastle

I have edited the “Partial Ellipsoid” some to test different attributes. I am wondering if it is possible to have an identical cone cutout at the top (minimumCone: Cesium.Math.toRadians(45.0)) at the bottom and meeting in the middle.

viewer.entities.add({
  name: "Partial ellipsoid",
  position: Cesium.Cartesian3.fromDegrees(-95.0, 34.0),
  orientation: Cesium.Transforms.headingPitchRollQuaternion(
    Cesium.Cartesian3.fromDegrees(-95.0, 34.0),
    new Cesium.HeadingPitchRoll.fromDegrees(340, 45, 0.0)),
  ellipsoid: {
    radii: new Cesium.Cartesian3(300000.0, 300000.0, 300000.0),
    innerRadii: new Cesium.Cartesian3(1, 1, 1),
    minimumClock: Cesium.Math.toRadians(-180),
    maximumClock: Cesium.Math.toRadians(180),
    minimumCone: Cesium.Math.toRadians(45.0),
    material: Cesium.Color.DARKCYAN.withAlpha(0.3),
    outline: true,
  },
});

image

Hello,

Didn’t see any idea so I wanted to add some clarification to hopefully make it clear what my question is. I am hoping to have an identical cone cutout at both the top and the bottom of the ellipsoid. I edited the picture below to sort of give an idea of what I am asking. Thanks!

image

Yes, I think you can do it with the following code:

viewer.entities.add({
  name: "Top and bottom cut out",
  position: Cesium.Cartesian3.fromDegrees(-102.0, 40.0, 140000.0),
  ellipsoid: {
    radii: new Cesium.Cartesian3(200000.0, 200000.0, 200000.0),
    innerRadii: new Cesium.Cartesian3(1.0, 1.0, 1.0),
    minimumCone: Cesium.Math.toRadians(45.0),
    maximumCone: Cesium.Math.toRadians(135.0),
    material: Cesium.Color.DARKCYAN.withAlpha(0.3),
    outline: true,
  },
});