1#ifndef COIN_SBBSPTREE_H
2#define COIN_SBBSPTREE_H
37#include <Inventor/lists/SbList.h>
38#include <Inventor/SbVec3f.h>
39#include <Inventor/SbBox3f.h>
42 #define COIN_ALLOW_SBINTLIST
43 #include <Inventor/lists/SbIntList.h>
44 #undef COIN_ALLOW_SBINTLIST
46 #include <Inventor/lists/SbIntList.h>
56 SbBSPTree(
const int maxnodepts = 64,
const int initsize = 4);
70 void clear(
const int initsize = 4);
83 friend class coin_bspnode;
84 SbList <SbVec3f> pointsArray;
85 SbList <void *> userdataArray;
86 coin_bspnode * topnode;
SbVec3f getPoint(const int idx) const
Definition SbBSPTree.cpp:410
int numPoints() const
Definition SbBSPTree.cpp:400
int findPoint(const SbVec3f &pos) const
Definition SbBSPTree.cpp:513
void setUserData(const int idx, void *const data)
Definition SbBSPTree.cpp:444
const SbVec3f * getPointsArrayPtr() const
Definition SbBSPTree.cpp:592
void findPoints(const SbSphere &sphere, SbIntList &array) const
Definition SbBSPTree.cpp:603
SbBSPTree(const int maxnodepts=64, const int initsize=4)
Definition SbBSPTree.cpp:380
int findClosest(const SbVec3f &pos) const
Definition SbBSPTree.cpp:545
int addPoint(const SbVec3f &pt, void *const userdata=NULL)
Definition SbBSPTree.cpp:461
const SbBox3f & getBBox() const
Definition SbBSPTree.cpp:536
int removePoint(const SbVec3f &pt)
Definition SbBSPTree.cpp:477
void clear(const int initsize=4)
Definition SbBSPTree.cpp:522
void * getUserData(const int idx) const
Definition SbBSPTree.cpp:432
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:46
The SbIntList class is a container for integer numbers.
Definition SbIntList.h:40
The SbSphere class is a representation of a sphere.
Definition SbSphere.h:42
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51