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 Details

    • AxisAlignedBoundingBox

      public AxisAlignedBoundingBox()
  • Method Details

    • computeAxisAlignedBoundingBox

      public static Box computeAxisAlignedBoundingBox​(Collection<? extends Point3D> points)
      Compute the axis aligned bounding box for the points given in parameter. If the point manager is null or empty, null is returned.
      Parameters:
      points - the points to englobe in the box
      Returns:
      the axis aligned bounding box
    • computeAxisAlignedBoundingBox

      public static Box computeAxisAlignedBoundingBox​(Point3DContainer<?> points)
      Compute the axis aligned bounding box for the points given in parameter. If the point manager is null or empty, null is returned.
      Parameters:
      points - the points to englobe in the box
      Returns:
      the axis aligned bounding box
    • computeAxisAlignedBoundingBox

      public static Box computeAxisAlignedBoundingBox​(Mesh<?> polyhedron)
      Compute an axis oriented bounding box for the polyhedron given in parameter. If the polyhedron is null or if it contains no vertices, null is returned.
      Parameters:
      polyhedron - the polyhedron to fit in the bounding box
      Returns:
      the axis aligned bounding box for the polyhedron.