Click or drag to resize

PointBatchPrimitiveSet Method (IEnumerableCartesian)

Defines the positions of points in a point batch. The points are rendered in the primitive's ReferenceFrame.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public void Set(
	IEnumerable<Cartesian> positions
)

Parameters

positions
Type: System.Collections.GenericIEnumerableCartesian
The new positions for the point batch.
Exceptions
ExceptionCondition
ArgumentNullExceptionpositions is null.
CouldNotCreateVideoCardResourceException Could not allocate video memory for positions.
Remarks

This call overwrites the primitive's previous positions and per-position colors. To update a subset of positions, use SetPartial.

Each point is rendered with the same color and translucency, which is defined by the primitive's Color and Translucency properties.

If this method is called frequently, it is recommended to construct the primitive with Frequent, which is the default. If this method will be called only once or infrequently, construct the primitive with Infrequent. See the Set Hint topic for more information.

If the primitive's AutomaticallyComputeBoundingSphere property is , the primitive's BoundingSphere is computed based on positions. Otherwise, it is the caller's responsibility to update the primitive's BoundingSphere to a sphere that encompasses all the positions.

See Also