Package cz.fidentis.analyst.data.kdtree
Interface TriangleKdNode
- All Superinterfaces:
KdNode
,Serializable
- All Known Implementing Classes:
TriangleKdNodeImpl
!!!EXPERIMENTAL!!!
Node of a TriangleKdTree.
-
Method Summary
Modifier and TypeMethodDescriptionGets parent of this node ornull
if it is the root node.double
getSplit()
Gets splitting plane position on axis according to depth.Gets triangles with their bounding boxes stored in this node if it is a leaf node.Gets triangles stored in this node if it is a leaf node.boolean
isLeaf()
Check if current node is leaf.Methods inherited from interface cz.fidentis.analyst.data.kdtree.KdNode
getDepth, getFacets, getGreater, getLesser, getLocation, setGreater, setLesser
-
Method Details
-
getParent
TriangleKdNode getParent()Gets parent of this node ornull
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.
-