﻿ MinimumEnclosure Methods

# MinimumEnclosure Methods

The MinimumEnclosure type exposes the following members.

## Methods

Name Description
Adds the corner vertices (actually 3d points) to the bounding box
BoundingRectangle
Finds the minimum bounding rectangle given a set of points. Either send any set of points OR the convex hull 2D.
ConvexHull2DArea
Finds the area of the convex hull region, given a set of convex hull points.
ConvexHull2DMaximal
Returns the MAXIMMAL 2D convex hull for given list of points. This only works on the x and y coordinates of the points. The term maximal refers to the fact that all points that lie on the convex hull are included in the result. This is useful if one if trying to identify such points. Otherwise, if the shape is what is important than the minimal approach is preferred.
ConvexHull2DMinimal
Returns the MINIMAL 2D convex hull for given list of points. This only works on the x and y coordinates of the points. The term minimal refers to the fact that only the necessary points that define the convex hull are included in the result. This is useful if one if trying to identify the shape of the hull. It is slightly faster than the maximal approach and it will likely lead to less exceptions in other methods (such as bounding box).
GetLengthAndExtremeVertices
Given a Direction, dir, this function returns the maximum length along this Direction for the provided vertices as well as the two vertices that represent the extremes.
MEC_Center
Takes a set of points and a line, and determines which side of the line the center of the MEC of the points lies on.
Median
Takes a set of elements and a metric for comparing them pairwise, and returns the median of the elements.
MinimumBoundingCylinder
Gets the minimum bounding cylinder using 13 guesses for the depth direction
MinimumCircle
Minimums the circle.
OBBAlongDirection
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.
OrientedBoundingBox(TessellatedSolid)
Finds the minimum bounding box.
OrientedBoundingBox(IList<(Of <<'(Vertex>)>>))
Finds the minimum bounding box.
OrientedBoundingBox_Test
Finds the minimum bounding box oriented along a particular Direction.