Package com.solibri.geometry.primitive3d
Interface AABB3d
- All Known Subinterfaces:
- MAABB3d
public interface AABB3d
Read-only interface for axis-aligned bounding boxes in 3-dimensional space.
- Since:
- 9.10.2
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if the given point is inside this bounding box.booleanReturns true if the given bounding box is inside this bounding box.static AABB3dReturns a bounding box with the given bounds.static AABB3dReturns a new instance of a bounding box with the same bounds as in the given bounding box.static AABB3dcreate(Collection<Vector3d> points) Returns the minimum volume axis-aligned bounding box for the given collection of points.doubleReturns the minimum distance between this bounding box and the given bounding box.doubledistanceSquared(AABB3d box) Returns the square of the minimum distance between this bounding box and the given bounding box.Returns a copy of the centroid vector of this bounding box.getEdges()Returns the edges of this bounding box.Returns the lower bound of this bounding box.doublegetSizeX()Returns the size of this bounding box on the X axis.doublegetSizeY()Returns the size of this bounding box on the Y axis.doublegetSizeZ()Returns the size of this bounding box on the Z axis.Returns the upper bound of this bounding box.doubleReturns the volume of this bounding box.booleanintersects(AABB3d aabb) Returns true if this bounding box intersects the given bounding box.booleanReturns true if the given bounding box is degenerated.
- 
Method Details- 
createReturns a new instance of a bounding box with the same bounds as in the given bounding box.- Parameters:
- boundingBox- the bounding box whose bounds are set to the returned box
- Returns:
- a new bounding box with the same bounds as in the given bounding box
- Throws:
- IllegalArgumentException- if given bounding box is not valid, meaning that lowerBound is greater than upperBound in any dimension
- Since:
- 9.10.2
 
- 
createReturns the minimum volume axis-aligned bounding box for the given collection of points.- Parameters:
- points- the points for which the minimum volume axis-aligned bounding box is computed
- Returns:
- the minimum volume axis-aligned bounding box for the given collection of points
- Since:
- 9.10.2
 
- 
createReturns a bounding box with the given bounds. If lowerBound is greater than upperBound in any dimension, IllegalArgumentException is thrown. To construct bounding box from any set of opposing corners,create(Collection)should be used instead.- Parameters:
- lowerBound- the lower bound for the bounding box
- upperBound- the upper bound for the bounding box
- Returns:
- a bounding box with the given bounds
- Throws:
- IllegalArgumentException- if lowerBound is greater than upperBound in any dimension
- Since:
- 9.10.2
 
- 
containsReturns true if the given point is inside this bounding box. Points on the boundary of bounding boxes are also considered to be contained.- Parameters:
- point- the point that is checked for containment
- Returns:
- true if the given point is contained in this bounding box
- Since:
- 9.10.2
 
- 
containsReturns true if the given bounding box is inside this bounding box.- Parameters:
- box- the bounding box that is checked for containment
- Returns:
- true if the given bounding box is inside this bounding box
- Since:
- 9.10.2
 
- 
getCentroidMVector3d getCentroid()Returns a copy of the centroid vector of this bounding box.- Returns:
- a copy of the centroid of this bounding box
- Since:
- 9.10.2
 
- 
distanceReturns the minimum distance between this bounding box and the given bounding box.- Parameters:
- box- the box to which the distance is computed
- Returns:
- the minimum distance between this bounding box and the given bounding box
- Since:
- 9.10.2
 
- 
distanceSquaredReturns the square of the minimum distance between this bounding box and the given bounding box.- Parameters:
- box- the box to which the squared distance is computed
- Returns:
- the square of the minimum distance between this bounding box and the given bounding box
- Since:
- 9.10.2
 
- 
getEdgesCollection<Segment3d> getEdges()Returns the edges of this bounding box. The order is not specified.- Returns:
- the edges of this bounding box
- Since:
- 9.10.2
 
- 
getLowerBoundVector3d getLowerBound()Returns the lower bound of this bounding box.- Returns:
- the lower bound of this bounding box
- Since:
- 9.10.2
 
- 
getSizeXdouble getSizeX()Returns the size of this bounding box on the X axis.- Returns:
- the size of this bounding box on the X axis
- Since:
- 9.10.2
 
- 
getSizeYdouble getSizeY()Returns the size of this bounding box on the Y axis.- Returns:
- the size of this bounding box on the Y axis
- Since:
- 9.10.2
 
- 
getSizeZdouble getSizeZ()Returns the size of this bounding box on the Z axis.- Returns:
- the size of this bounding box on the Z axis
- Since:
- 9.10.2
 
- 
getUpperBoundVector3d getUpperBound()Returns the upper bound of this bounding box.- Returns:
- the upper bound of this bounding box
- Since:
- 9.10.2
 
- 
getVolumedouble getVolume()Returns the volume of this bounding box.- Returns:
- the volume of this bounding box
- Since:
- 9.10.2
 
- 
intersectsReturns true if this bounding box intersects the given bounding box. Bounding boxes intersect if their boundaries intersect or if one is contained within the other.- Parameters:
- aabb- the bounding box with which this box is checked for intersection
- Returns:
- true if this bounding box intersects the given bounding box
- Since:
- 9.10.2
 
- 
isDegenerateboolean isDegenerate()Returns true if the given bounding box is degenerated. A bounding box is considered degenerate if its volume is zero or if its lower bound is greater than its upper bound in any dimension.- Returns:
- true if the given bounding box is degenerated
- Since:
- 9.10.2
 
 
-