Computes the oriented box that bounds all vertices.
XSpaceUtility..::.ComputeVerticesSimpleOBB(IXVertexArray)
Namespace:
SGP.XSpaceAssembly: 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | vertices is nullNothingnullptra null reference (Nothing in Visual Basic). |