Module org.jeometry.algorithm
Class AxisAlignedBoundingBox
java.lang.Object
org.jeometry.geom3D.algorithm.bounds.AxisAlignedBoundingBox
public class AxisAlignedBoundingBox extends Object
A class that enable to Compute the axis aligned bounding box for the spatial objects given in parameter.
- Author:
- Julien SEINTURIER (JOrigin) - https://github.com/jseinturier
-
Constructor Summary
Constructors Constructor Description AxisAlignedBoundingBox() -
Method Summary
Modifier and Type Method Description static BoxcomputeAxisAlignedBoundingBox(Collection<? extends Point3D> points)Compute the axis aligned bounding box for the points given in parameter.static BoxcomputeAxisAlignedBoundingBox(Mesh<?> polyhedron)Compute an axis oriented bounding box for the polyhedron given in parameter.static BoxcomputeAxisAlignedBoundingBox(Point3DContainer<?> points)Compute the axis aligned bounding box for the points given in parameter.
-
Constructor Details
-
AxisAlignedBoundingBox
public AxisAlignedBoundingBox()
-
-
Method Details
-
computeAxisAlignedBoundingBox
Compute the axis aligned bounding box for the points given in parameter. If the point manager isnullor empty,nullis returned.- Parameters:
points- the points to englobe in the box- Returns:
- the axis aligned bounding box
-
computeAxisAlignedBoundingBox
Compute the axis aligned bounding box for the points given in parameter. If the point manager isnullor empty,nullis returned.- Parameters:
points- the points to englobe in the box- Returns:
- the axis aligned bounding box
-
computeAxisAlignedBoundingBox
Compute an axis oriented bounding box for the polyhedron given in parameter. If the polyhedron isnullor if it contains no vertices,nullis returned.- Parameters:
polyhedron- the polyhedron to fit in the bounding box- Returns:
- the axis aligned bounding box for the polyhedron.
-