#include <octree.h>
Inheritance diagram for csOctreeNode:
Public Methods | |
bool | IsEmpty () |
Return true if node is empty. | |
bool | IsLeaf () |
Return true if node is leaf. | |
const csVector3& | GetCenter () const |
Get center. | |
const csVector3& | GetMinCorner () const |
Get minimum coordinate of box. | |
const csVector3& | GetMaxCorner () const |
Get maximum coordinate of box. | |
const csBox3& | GetBox () |
Get box. | |
csOctreeNode* | GetChild (int i) |
Get a child. | |
UShort | GetSolidMask (int idx) |
Get one of the masks representing solid space on the boundaries of this node. More... | |
csPolygonIntArray& | GetUnsplitPolygons () |
Get the list of all unsplit polygons in this node. More... | |
csBspTree* | GetMiniBsp () const |
Get mini-bsp tree. | |
int* | GetMiniBspVerts () const |
Get indices of vertices used in the mini-bsp of this leaf. | |
int | GetMiniBspVertexCount () const |
Get number of vertices. | |
int | Type () |
Return type (NODE_???). | |
int | CountChildren () |
Count the number of children (octree nodes) for this node. | |
int | CountPolygons () |
Count all the polygons in this node and children. More... | |
void* | InitSolidPolygonIterator (int side) |
Create an iterator to iterate over all solid polygons that are on the specified side of this octree node ('side' is one of BOX_SIDE_xxx flags). | |
bool | NextSolidPolygon (void *vspit, csPoly3D &poly) |
Get the next solid polygon from the iterator. More... | |
void | CleanupSolidPolygonIterator (void *vspit) |
If done with the iterator clean it up. | |
Friends | |
class | csOctree |
@@ We should have seperate leaf/non-leaf structures as they are considerably different.
|
Count all the polygons in this node and children. This function only calls leaf polygons (i.e. polygons that will actually be returned by Front2Back/Back2Front). |
|
Get one of the masks representing solid space on the boundaries of this node. Use the BOX_SIDE_xxx flags to fetch them. |
|
Get the list of all unsplit polygons in this node. These are the original unsplit polygons. Further subdivision of this node will have caused these polygons to be split into the children but the list here reflects the unsplit polygons. |
|
Get the next solid polygon from the iterator. Returns false if there are no more polygons. |