Interface TriangleKdNode

All Superinterfaces:
KdNode, Serializable
All Known Implementing Classes:
TriangleKdNodeImpl

public interface TriangleKdNode extends KdNode
!!!EXPERIMENTAL!!! Node of a TriangleKdTree.
  • Method Details

    • getParent

      TriangleKdNode getParent()
      Gets parent of this node or null if it is the root node.
      Returns:
      Parent node.
    • getTriangles

      List<MeshTriangle> getTriangles()
      Gets triangles stored in this node if it is a leaf node.
      Returns:
      List of stored triangles or empty list if not a leaf node.
    • getTriangleBoundingBoxes

      List<MeshTriangleBoundingBox> getTriangleBoundingBoxes()
      Gets triangles with their bounding boxes stored in this node if it is a leaf node.
      Returns:
      List of stored triangles with their bounding boxes or empty list if not a leaf node.
    • getSplit

      double getSplit()
      Gets splitting plane position on axis according to depth.
      Returns:
      Splitting plane position on either x/y/z based on depth.
    • isLeaf

      boolean isLeaf()
      Check if current node is leaf.
      Returns:
      true if it is a leaf node. false otherwise.