Modifier and Type | Method and Description |
---|---|
static MAABB3d |
create(AABB3d boundingBox)
Returns a new instance of a bounding box with the same bounds as in the
given bounding box.
|
static MAABB3d |
create(Collection<Vector3d> points)
Returns the minimum volume axis-aligned bounding box for the given
collection of points.
|
static MAABB3d |
create(Vector3d lowerBound,
Vector3d upperBound)
Returns a bounding box with the given bounds.
|
void |
extend(Collection<Vector3d> points)
Extends this axis-aligned bounding box to contain the given points.
|
void |
extend(Vector3d point)
Extends this axis-aligned bounding box to contain the given point.
|
void |
resize(double resizeValue)
Resizes this bounding box by the given value.
|
void |
set(Vector3d lowerBound,
Vector3d upperBound)
Sets the given bounds to this bounding box.
|
void |
setLowerBound(Vector3d lowerBound)
Sets the lower bound of this bounding box to the given value.
|
void |
setUpperBound(Vector3d upperBound)
Sets the upper bound of this bounding box to the given value.
|
void |
translate(Vector3d translator)
Translates this bounding box by the given vector.
|
contains, contains, distance, distanceSquared, getCentroid, getEdges, getLowerBound, getSizeX, getSizeY, getSizeZ, getUpperBound, getVolume, intersects, isDegenerate
static MAABB3d create(AABB3d boundingBox)
static MAABB3d create(Collection<Vector3d> points)
static MAABB3d create(Vector3d lowerBound, Vector3d upperBound)
void extend(Vector3d point)
point
- the point that this box is extended to includevoid extend(Collection<Vector3d> points)
points
- the points that this box is extended to includevoid resize(double resizeValue)
resizeValue
- the value by which this bounding box is resizedvoid set(Vector3d lowerBound, Vector3d upperBound)
lowerBound
- the lower bound that is set to this boxupperBound
- the upper bound that is set to this boxvoid setUpperBound(Vector3d upperBound)
upperBound
- the upper bound that is set to this bounding boxvoid setLowerBound(Vector3d lowerBound)
lowerBound
- the lower bound that is set to this bounding boxvoid translate(Vector3d translator)
translator
- the vector by which this bounding box is translatedCopyright © 2019 Solibri, Inc.. All rights reserved.