This property is for debugging only; it is not for production use nor is it optimized.
Draws the bounding sphere for each draw command in the primitive.
Returns the number of points in this collection. This is commonly used with {@link PointPrimitiveCollection#get} to iterate over all the points in the collection.
The 4x4 transformation matrix that transforms each point in this collection from model to world coordinates. When this is the identity matrix, the pointPrimitives are drawn in world coordinates, i.e., Earth's WGS84 coordinates. Local reference frames can be used by providing a different transformation matrix, like that returned by {@link Transforms.eastNorthUpToFixedFrame}.
Creates and adds a point with the specified initial properties to the collection. The added point is returned so it can be modified or removed from the collection later.
The point that was added to the collection.
Check whether this collection contains a given point.
true if this collection contains the point, false otherwise.
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
release of WebGL resources, instead of relying on the garbage collector to destroy this object.
Once an object is destroyed, it should not be used; calling any function other than
isDestroyed
will result in a DeveloperError exception. Therefore,
assign the return value (undefined
) to the object as done in the example.
Returns the point in the collection at the specified index. Indices are zero-based and increase as points are added. Removing a point shifts all points after it to the left, changing their indices. This function is commonly used with {@link PointPrimitiveCollection#length} to iterate over all the points in the collection.
The zero-based index of the point.
The point at the specified index.
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other than
isDestroyed
will result in a DeveloperError exception.
true
if this object was destroyed; otherwise, false
.
Removes a point from the collection.
The point to remove.
true
if the point was removed; false
if the point was not found in the collection.
Removes all points from the collection.
The point blending option. The default is used for rendering both opaque and translucent points. However, if either all of the points are completely opaque or all are completely translucent, setting the technique to BlendOption.OPAQUE or BlendOption.TRANSLUCENT can improve performance by up to 2x.