Interface MeshTriangleBoundingBox

All Known Implementing Classes:
MeshTriangleBoundingBoxImpl

public interface MeshTriangleBoundingBox
Class for creation and manipulation of an axis-aligned bounding box of a triangle.
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.vecmath.Point3d
    Gets center point of bounding box.
    javax.vecmath.Point3d
    Gets the largest corner of the bounding box - maximum of x,y,z values of triangle.
    javax.vecmath.Point3d
    Gets the smallest corner of the bounding box - minimum of x,y,z values of triangle.
    Gets underlying triangle.
    boolean
    intersectAABB(double splitPosition, int depth)
    Checks if splitting plane at a certain depth of a KdTree intersects triangles axis-aligned bounding box.
  • Method Details

    • getTriangle

      MeshTriangle getTriangle()
      Gets underlying triangle.
      Returns:
      MeshTriangle in its bounding box
    • getMaxAABB

      javax.vecmath.Point3d getMaxAABB()
      Gets the largest corner of the bounding box - maximum of x,y,z values of triangle.
      Returns:
      Largest corner of bounding box.
    • getMinAABB

      javax.vecmath.Point3d getMinAABB()
      Gets the smallest corner of the bounding box - minimum of x,y,z values of triangle.
      Returns:
      Smallest corner of bounding box.
    • getCentroid

      javax.vecmath.Point3d getCentroid()
      Gets center point of bounding box.
      Returns:
      Center point of bounding box.
    • intersectAABB

      boolean intersectAABB(double splitPosition, int depth)
      Checks if splitting plane at a certain depth of a KdTree intersects triangles axis-aligned bounding box.
      Parameters:
      splitPosition - Coordinate of splitting plane, based on depth either x/y/z axis.
      depth - Depth of splitting plane in KdTree.
      Returns:
      true if the splitting plane intersects AABB. false otherwise.