#include <box.h>
Inheritance diagram for BoxTreeInnerNode:

Public Methods | |
| BoxTreeInnerNode (const Vector3D& pos, const Vector3D& size, int logdepth) | |
| virtual bool | isLeaf () const |
| int | createSons (const Vector3D& center) |
| void | recalcBounds (Vector3D& center) |
| int | divide (int p_depth) |
| int | getSonsNumber () |
| int | getTrianglesNumber () |
| BoxedTriangle* | getTriangle (int which) |
| BoxTreeNode* | getSon (int which) |
Public Attributes | |
| BoxTreeNode* | m_First |
| BoxTreeNode* | m_Second |
| int | m_logdepth |
| std::vector<BoxedTriangle*> | m_Boxes |
|
|
|
|
|
Create the sons that will divide this box |
|
|
Recursively divide this box |
|
|
Returns a son node, by index Reimplemented from BoxTreeNode. |
|
|
Returns the number of sons this node has Reimplemented from BoxTreeNode. |
|
|
Returns the boxed triangle contained in this node by its index Reimplemented from BoxTreeNode. |
|
|
Returns the number of triangles in this node. Only non-zero for leaf nodes. Reimplemented from BoxTreeNode. |
|
|
Returns true if the node is a leaf node. Reimplemented from BoxTreeNode. |
|
|
Recalculate the bounds of this box to fully contain all of its triangles |
|
|
|
|
|
|
|
|
|
|
|
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000