So, I’m seeing a difference in behavior between using a Cartesian3 for an ellipsoid’s innerRadii, and using a CallbackProperty that always returns the same Cartesian3. Sandcastle code:
viewer.entities.add({
name: 'Wedge',
position: new Cesium.Cartesian3(0, 0, 0),
ellipsoid: {
radii: new Cesium.Cartesian3(77950137, 77950137, 77950137),
innerRadii: new Cesium.Cartesian3(24271137, 24271137, 24271137),
minimumClock: Cesium.Math.toRadians(50),
maximumClock: Cesium.Math.toRadians(60),
minimumCone: 0.2617993877991494,
maximumCone: 2.8797932657906435,
material: Cesium.Color.RED.withAlpha(0.2)
}
});
viewer.entities.add({
name: 'CB Wedge',
position: new Cesium.Cartesian3(0, 0, 0),
ellipsoid: {
radii: new Cesium.CallbackProperty( () => new Cesium.Cartesian3(77950137, 77950137, 77950137), false),
innerRadii: new Cesium.CallbackProperty(() => new Cesium.Cartesian3(24271137, 24271137, 24271137), false),
minimumClock: Cesium.Math.toRadians(60),
maximumClock: Cesium.Math.toRadians(80),
minimumCone: 0.2617993877991494,
maximumCone: 2.8797932657906435,
material: Cesium.Color.GREEN.withAlpha(0.2)
}
});
yields the following on the globe:
Note the difference in the inner curves - I’d expected those to be the same. What am I doing wrong?
Thanks!