Click or drag to resize
DigitalRuneGeometryHelperCreateBoundingShape Method
Computes a minimum bounding shape that contains all given points.

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static Shape CreateBoundingShape(
	IList<Vector3F> points
)

Parameters

points
Type: System.Collections.GenericIListVector3F
The points.

Return Value

Type: Shape
A minimum bounding shape that contains all given points.
Exceptions
ExceptionCondition
ArgumentNullExceptionpoints is .
ArgumentExceptionpoints is empty.
Remarks
The returned shape will be a SphereShape, a CapsuleShape, a BoxShape, or a TransformedShape (containing a sphere, capsule, or a box). The bounding shape is not guaranteed to be optimal, it is only guaranteed that the bounding shape includes all given points.
See Also