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(
	IXVertexArray vertices
)

Parameters

vertices
Type: SGP.XSpace..::.IXVertexArray
Vertices.

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