Package cz.fidentis.analyst.data.kdtree
Interface LeftBalancedKdNode
- All Superinterfaces:
KdNode
,Serializable
- All Known Implementing Classes:
LeftBalancedKdNodeImpl
Node of a LeftBalancedKdTree.
It stores its location in the Kd-tree,
MeshFacet
, MeshPoint
and the index of the MeshPoint
in the MeshFacet
.-
Method Summary
Modifier and TypeMethodDescriptiongetFacet()
Gets theMeshFacet
of node.int
Gets the index of the Node in the Kd-tree array.int
Gets the index of theMeshPoint
in theMeshFacet
.Gets theMeshPoint
of node.Gets the one ring neighborhood of theMeshPoint
on theMeshFacet
saved in node.boolean
Check if theMeshPoint
stored in this node is on the boundary of theMeshFacet
stored in this node.void
setKdTreeValues
(int index, int depth) Sets the values of the Node in the Kd-Tree array.Methods inherited from interface cz.fidentis.analyst.data.kdtree.KdNode
getDepth, getFacets, getGreater, getLesser, getLocation, setGreater, setLesser
-
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 arraydepth
- - 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 theMeshPoint
of node.- Returns:
MeshPoint
of node.
-
getFacet
MeshFacet getFacet()Gets theMeshFacet
of node.- Returns:
MeshFacet
of node.
-
getMeshFacetIndex
int getMeshFacetIndex()Gets the index of theMeshPoint
in theMeshFacet
.- Returns:
- index of the
MeshPoint
in theMeshFacet
.
-
isOnBoundary
boolean isOnBoundary()Check if theMeshPoint
stored in this node is on the boundary of theMeshFacet
stored in this node.- Returns:
true
- when theMeshPoint
is on the boundary of theMeshFacet
,false
otherwise
-
getSurroundingTriangles
List<MeshTriangle> getSurroundingTriangles()Gets the one ring neighborhood of theMeshPoint
on theMeshFacet
saved in node.- Returns:
- List of
MeshTriangle
surrounding theMeshPoint
on theMeshFacet
.
-