- Timestamp:
- Nov 21, 2005, 11:33:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/obb_tree_node.cc
r5688 r5689 100 100 * @param depth: how much more depth-steps to go: if == 1 don't go any deeper! 101 101 * @param modInfo: model informations from the abstrac model 102 * 102 * 103 103 * this function creates the Bounding Volume tree from a modelInfo struct and bases its calculations 104 104 * on the triangle informations (triangle soup not polygon soup) … … 108 108 int length = 0; 109 109 sVec3D* verticesList; 110 110 111 111 PRINT(3)("\n"); 112 112 this->treeIndex = this->obbTree->getID(); … … 145 145 // PRINTF(3)("Aboarding tree walk: less than 3 vertices left\n"); 146 146 // } 147 // 147 // 148 148 // if( this->tmpLen2 > 2) 149 149 // { … … 165 165 * @param depth: how much more depth-steps to go: if == 1 don't go any deeper! 166 166 * @param verticesList: the list of vertices of the object - each vertices triple is interpreted as a triangle 167 * 167 * 168 168 * this function creates an Bounding Volume tree from a vertices soup (no triangle data) 169 169 */ … … 468 468 void OBBTreeNode::calculateBoxAxis(OBB* box, const modelInfo& modInfo) 469 469 { 470 //this->calculateBoxAxis( box,modInfo.pVertices, modInfo.numVertices);470 this->calculateBoxAxis(box, (const sVec3D*)modInfo.pVertices, modInfo.numVertices); 471 471 } 472 472 … … 792 792 if( (rA + rB) < fabs(t.dot(l))) 793 793 { 794 PRINT(3)(" keine Kollision\n");794 PRINT(3)("no Collision\n"); 795 795 return false; 796 796 } … … 816 816 if( (rA + rB) < fabs(t.dot(l))) 817 817 { 818 PRINT(3)(" keine Kollision\n");818 PRINT(3)("no Collision\n"); 819 819 return false; 820 820 }
Note: See TracChangeset
for help on using the changeset viewer.