Interface LeftBalancedKdNode

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

public interface LeftBalancedKdNode extends KdNode
Node of a LeftBalancedKdTree. It stores its location in the Kd-tree, MeshFacet, MeshPoint and the index of the MeshPoint in the MeshFacet.
  • Method Details

    • setKdTreeValues

      void setKdTreeValues(int index, int depth)
      Sets the values of the Node in the Kd-Tree array. Used during the building of the KdTree
      Parameters:
      index - - Index of node in the Kd-Tree array
      depth - - Depth of node in the Kd-Tree
    • getKdTreeIndex

      int getKdTreeIndex()
      Gets the index of the Node in the Kd-tree array.
      Returns:
      index of the Node in the Kd-tree array.
    • getMeshPoint

      MeshPoint getMeshPoint()
      Gets the MeshPoint of node.
      Returns:
      MeshPoint of node.
    • getFacet

      MeshFacet getFacet()
      Gets the MeshFacet of node.
      Returns:
      MeshFacet of node.
    • getMeshFacetIndex

      int getMeshFacetIndex()
      Gets the index of the MeshPoint in the MeshFacet.
      Returns:
      index of the MeshPoint in the MeshFacet.
    • isOnBoundary

      boolean isOnBoundary()
      Check if the MeshPoint stored in this node is on the boundary of the MeshFacet stored in this node.
      Returns:
      true - when the MeshPoint is on the boundary of the MeshFacet, false otherwise
    • getSurroundingTriangles

      List<MeshTriangle> getSurroundingTriangles()
      Gets the one ring neighborhood of the MeshPoint on the MeshFacet saved in node.
      Returns:
      List of MeshTriangle surrounding the MeshPoint on the MeshFacet.