1. A concise explanation of the problem you're experiencing.
The geometric energy added by the Primitive can not change the property?
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
viewer.scene.primitives.add(new Cesium.Primitive({
geometryInstances: new Cesium.GeometryInstance({
geometry: new Cesium.PolygonGeometry({
polygonHierarchy : new Cesium.PolygonHierarchy(
Cesium.Cartesian3.fromDegreesArray([
-72.0, 40.0,
-70.0, 35.0,
-75.0, 30.0,
-70.0, 30.0,
-68.0, 40.0
])
),
extrudedHeight: 300000
})
}),
appearance: new Cesium.EllipsoidSurfaceAppearance({
aboveGround: false,
material: WaterMaterial
}),
show: true
}))
As shown in the code, I add a PolygonGeometry,But I can't dynamically change the value of extrudedHeight,
I tried to dynamically change the value of extrudedHeight with the Cesium.CallbackProperty() method,But it doesn't work。
I hope the teacher can help me solve the problem,Thanks!
Liu from China.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I want to change the extrudedHeight property dynamically.Primitive must be used.Because of the use of material.
4. The Cesium version you're using, your operating system and browser.