- The options object takes the following properties
- {Matrix4} [options.modelMatrix=Matrix4.IDENTITY] The 4x4 transformation matrix that transforms each point from model to world coordinates.
- {Boolean} [options.debugShowBoundingVolume=false] For debugging only. Determines if this primitive's commands' bounding spheres are shown.
performance For best performance, prefer a few collections, each with many points, to
many collections with only a few points each. Organize collections so that points
with the same update frequency are in the same collection, i.e., points that do not
change should be in one collection; points that change every frame should be in another
collection; and so on.
// Create a pointPrimitive collection with two points
var points = scene.primitives.add(new Cesium.PointPrimitiveCollection());
points.add({
position : new Cesium.Cartesian3(1.0, 2.0, 3.0),
color : Cesium.Color.YELLOW
});
points.add({
position : new Cesium.Cartesian3(4.0, 5.0, 6.0),
color : Cesium.Color.CYAN
});
A renderable collection of points.
Points are added and removed from the collection using PointPrimitiveCollection#add and PointPrimitiveCollection#remove
alias PointPrimitiveCollection
- The options object takes the following properties - {Matrix4} [options.modelMatrix=Matrix4.IDENTITY] The 4x4 transformation matrix that transforms each point from model to world coordinates. - {Boolean} [options.debugShowBoundingVolume=false] For debugging only. Determines if this primitive's commands' bounding spheres are shown.
performance For best performance, prefer a few collections, each with many points, to many collections with only a few points each. Organize collections so that points with the same update frequency are in the same collection, i.e., points that do not change should be in one collection; points that change every frame should be in another collection; and so on.
// Create a pointPrimitive collection with two points var points = scene.primitives.add(new Cesium.PointPrimitiveCollection()); points.add({ position : new Cesium.Cartesian3(1.0, 2.0, 3.0), color : Cesium.Color.YELLOW }); points.add({ position : new Cesium.Cartesian3(4.0, 5.0, 6.0), color : Cesium.Color.CYAN });
PointPrimitive
PointPrimitiveCollection#remove
PointPrimitiveCollection#add