13 #ifndef OPENHRP_COLDET_MODEL_SHARED_DATA_SET_H_INCLUDED 14 #define OPENHRP_COLDET_MODEL_SHARED_DATA_SET_H_INCLUDED 35 triangles[0] = triangles[1] = triangles[2] = -1;
38 for(
int i=0;
i < 3; ++
i){
40 triangles[
i] = neighbor;
46 for(
int i=0;
i<3;
i++){
47 if(triangles[
i]==neighbor){
48 for(
int j=
i+1; j<3; j++){
49 triangles[j-1] = triangles[j];
56 int operator[](
int index)
const {
return triangles[index]; }
79 return AABBTreeMaxDepth;
82 return numBBMap.at(depth);
85 if(AABBTreeMaxDepth>0)
86 return numBBMap.at(AABBTreeMaxDepth-1);
void deleteNeighbor(int neighbor)
std::vector< NeighborTriangleSet > NeighborTriangleSetArray
int getNumofBB(int depth)
void addNeighbor(int neighbor)
vector< IceMaths::IndexedTriangle > triangles
int operator[](int index) const
std::vector< int > numBBMap
vector< IceMaths::Point > vertices
ColdetModel::PrimitiveType pType
Opcode::MeshInterface iMesh
NeighborTriangleSetArray neighbor
static int max(int a, int b)
std::vector< float > pParams
std::vector< int > numLeafMap