Property | Type | Description | |
---|---|---|---|
dist | float | ||
position | byte | ||
vd |
Method | Description | |
---|---|---|
DynamicOctreeNode ( byte position ) |
Creates a new empty node with no child nodes.
|
|
addChild ( byte withPos ) : |
Adds a child with the specified node to this node, iff there is no child node with position withPos yet. In there is already such a node, it is returned.
|
|
getChildCount ( ) : byte |
Returns the child count of this node.
|
|
getFirstChild ( ) : |
Returns the first child of this node.
|
|
getLeafCount ( ) : uint |
Returns the total number of leaf nodes beneath this node.
|
|
getNextNode ( ) : |
Returns the next child of this node's parent after this node.
|
|
getNodeCount ( ) : int |
Returns the total number of this node's children + 1.
|
|
getPreLeafCount ( ) : uint |
Returns the total number of pre-leaf nodes beneath this node. A pre-leaf is a node, whose children are leaves.
|
|
hasChildren ( ) : bool |
Returns whether this node has child nodes or not.
|
public DynamicOctreeNode ( byte position ) | ||
position | byte | The position of this node relative to
/// its parent. |
public addChild ( byte withPos ) : |
||
withPos | byte | The position of the child node relative to this node. |
return |