public class TreeNode extends Object
A triangle is represented by the three sides described as left, right and base. This triangle is connected to neighbour triangles through these references and form part of the ROAM code. A triangle is defined in terms of an apex coordinate and left and right then based on the coordinates supplied. left and right do not necessarily correspond to real world left/right as you look down on the terrain.
| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_TO_BASE
Base to base orientation of the edge split routine
|
static int |
LEFT_TO_RIGHT
Left to right orientation of the edge split routine
|
static int |
RIGHT_TO_LEFT
right to left orientation of the edge split routine
|
static int |
UNDEFINED
The visibility status of this node in the tree is not known.
|
| Modifier and Type | Method and Description |
|---|---|
static TreeNode |
getTreeNode()
Either return a node from the cache or if the cache is empty, return
a new tree node.
|
int |
getVisibility()
Get the visibility state of this node.
|
public static final int UNDEFINED
public static final int BASE_TO_BASE
public static final int LEFT_TO_RIGHT
public static final int RIGHT_TO_LEFT
public int getVisibility()
public static TreeNode getTreeNode()
Copyright © 2001 - 2015 j3d.org