#include <box.h>
Inheritance diagram for BoxTreeNode:
Public Methods | |
BoxTreeNode () | |
BoxTreeNode (const Vector3D& pos, const Vector3D& size) | |
virtual bool | isLeaf () const = 0 |
virtual int | getSonsNumber () = 0 |
virtual BoxTreeNode* | getSon (int which) = 0 |
virtual int | getTrianglesNumber () = 0 |
virtual BoxedTriangle* | getTriangle (int which) = 0 |
|
Default constructor |
|
Constructor for a box from position and size |
|
Returns a son node, by index Reimplemented in BoxTreeInnerNode, and BoxedTriangle. |
|
Returns the number of sons this node has Reimplemented in BoxTreeInnerNode, and BoxedTriangle. |
|
Returns the boxed triangle contained in this node by its index Reimplemented in BoxTreeInnerNode, and BoxedTriangle. |
|
Returns the number of triangles in this node. Only non-zero for leaf nodes. Reimplemented in BoxTreeInnerNode, and BoxedTriangle. |
|
Returns true if the node is a leaf node. Reimplemented in BoxTreeInnerNode, and BoxedTriangle. |