new OcTreeBase(options)
Represensta a BaseTree that can be build from ros message and create a THREE node from it. Due a tree can be represented different ways in a message, this class is also a base class to represent specialized versions fo the ree.
Parameters:
Name | Type | Description |
---|---|---|
options |
object with following keys:
|
- Source:
Members
_FACES
Table which we are building the geometry data from.
- Source:
Methods
_computeCoordFromKey()
- Source:
_obtainColor()
Abstract function; to implement different coloring schemes
- Source:
_readNodeData()
Abstract function; Reads and sets data of a node
- Source:
buildGeometry()
Builds up THREE.js geometry from tree data.
- Source:
read()
Reads a full tree (with node data) from a message. A pacjet starts with the node data, followed by the allocation map of their children. Each type of tree has different data structure @see ROS3DJS.OcTreeBase._readNodeData
- Source: