MinimumEnclosure..::..OBBAlongDirection Method

Finds the minimum oriented bounding rectangle (2D). The 3D points of a tessellated solid are projected to the plane defined by "Direction". This returns a BoundingBox structure where the first Direction is the same as the prescribed Direction and the other two are in-plane unit vectors.

Namespace:  TVGL
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static BoundingBox OBBAlongDirection(
	IList<Vertex> vertices,
	double[] direction
)
Public Shared Function OBBAlongDirection ( _
	vertices As IList(Of Vertex), _
	direction As Double() _
) As BoundingBox
public:
static BoundingBox^ OBBAlongDirection(
	IList<Vertex^>^ vertices, 
	array<double^>^ direction
)

Parameters

vertices
Type: IList<(Of <(<'Vertex>)>)>
The vertices.
direction
Type: array<Double>[]()[][]
The Direction.

Return Value

BoundingBox.

Exceptions


ExceptionCondition
ExceptionVolume should never be negligible, unless the input data is bad
Exception