Go to the documentation of this file.
5 #ifndef CNOID_AIST_COLLISION_DETECTOR_COLDET_MODEL_INTERNAL_MODEL_H
6 #define CNOID_AIST_COLLISION_DETECTOR_COLDET_MODEL_INTERNAL_MODEL_H
9 #include "Opcode/Opcode.h"
23 for(
int i=0; i < 3; ++i){
31 for(
int i=0; i<3; i++){
33 for(
int j=i+1; j<3; j++){
60 return AABBTreeMaxDepth;
63 return numBBMap.at(depth);
66 if(AABBTreeMaxDepth>0){
67 return numBBMap.at(AABBTreeMaxDepth-1);
76 std::vector<int> numBBMap;
77 std::vector<int> numLeafMap;
79 void extractNeghiborTriangles();
80 int computeDepth(
const Opcode::AABBCollisionNode* node,
int currentDepth,
int max );
Opcode::Model model
Definition: ColdetModelInternalModel.h:51
Opcode::MeshInterface iMesh
Definition: ColdetModelInternalModel.h:52
int getAABBTreeDepth()
Definition: ColdetModelInternalModel.h:59
bool build()
Definition: ColdetModel.cpp:253
Definition: ColdetModel.h:22
void addNeighbor(int neighbor)
Definition: ColdetModelInternalModel.h:22
std::vector< IceMaths::IndexedTriangle > triangles
Definition: ColdetModelInternalModel.h:54
Definition: ColdetModelInternalModel.h:14
int getNumofBB(int depth)
Definition: ColdetModelInternalModel.h:62
ColdetModelInternalModel()
Definition: ColdetModel.cpp:100
std::vector< IceMaths::Point > vertices
Definition: ColdetModelInternalModel.h:53
NeighborTriangleSet()
Definition: ColdetModelInternalModel.h:19
int getmaxNumofBB()
Definition: ColdetModelInternalModel.h:65
std::vector< NeighborTriangleSet > NeighborTriangleSetArray
Definition: ColdetModelInternalModel.h:44
Definition: AbstractSceneLoader.h:11
ColdetModel::PrimitiveType pType
Definition: ColdetModelInternalModel.h:56
void deleteNeighbor(int neighbor)
Definition: ColdetModelInternalModel.h:30
PrimitiveType
Definition: ColdetModel.h:25
Definition: ColdetModelInternalModel.h:17
int neighbors[3]
Definition: ColdetModelInternalModel.h:18
int operator[](int index) const
Definition: ColdetModelInternalModel.h:41
NeighborTriangleSetArray neighbors
Definition: ColdetModelInternalModel.h:55
std::vector< float > pParams
Definition: ColdetModelInternalModel.h:57