图6.21 用八叉树表示三维物体
��下面是定义八叉树的数据结构的一个例子:
���typedef struct octreetype
���{
����ClassType Type;
����int Depth; //
����struct octreetype *Octree[8];
���} OctreeType ;
���struct {
����PointType Point[8] ; // vertice of cube
����OctreeType *pOctreeRoot ;
���} Example ;
|