Computes the oriented box that bounds all vertices. XSpaceUtility..::.ComputeVerticesSimpleOBB(IXVertexArray)

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static XOrientedBox ComputeVerticesOBB(
	Vector3[] vertices
)

Parameters

vertices
Type: array< Vector3 >[]()[]
Vertex array.

Return Value

Oriented bounding box.

Remarks

For the computation, only vertices of the bounding convex hull will be used, thus the oriented box will be minimal.

Exceptions

ExceptionCondition
System..::.ArgumentNullException vertices is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also