Removing particular Primitive


I got to understand that bunching up the GeometryInstances in a primitive is efficient through one of the tutorial.

Is it not possible to remove just one boxGeometry strutcture when we bunch a group of boxGeometryInstances and called it from primitive like how it is shown in [1]?

primitive.removeAll(); Removes all the boxGeometry on the globe and redraws them :frowning:


var primitive = new Cesium.Primitive({

        geometryInstances : boxGeometryInstance,
        appearance : new Cesium.PerInstanceColorAppearance({

            translucent : false,

            closed : true



Once batched, you can’t remove a single geometry, but you could set its show property to false to hide it. See the tutorial for an example.


Thank you.