Click or drag to resize

PrimitiveAutomaticallyComputeBoundingSphere Property

Gets or sets if the primitive's BoundingSphere is automatically computed.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public virtual bool AutomaticallyComputeBoundingSphere { get; set; }

Property Value

Type: Boolean
Remarks

A primitive's BoundingSphere is used for visibility tests to improve rendering performance. When AutomaticallyComputeBoundingSphere is true, the sphere is automatically computed when a primitive's geometry or position is modified due to a Set or SetPartial call. Otherwise, it is the caller's responsibility to set the primitive's BoundingSphere.

A user may set this property to false in cases when they can determine a BoundingSphere that encompasses everywhere a dynamic primitive may move to. This can improve performance by eliminating the overhead associated with re-computing the bounding sphere and updating the primitive manager's spatial data structures.

See Also