![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsCDLib.hpp 00003 00004 SUKITTI PUNAK (01/16/2006) 00005 ******************************************************************************/ 00006 #ifndef TAPs_CD_LIB_HPP 00007 #define TAPs_CD_LIB_HPP 00008 00071 //#define TAPs_DEBUG_COLLISION_DETECTION 00072 00073 #include "TAPsBVHTree.hpp" 00074 #include "TAPsBVHTree_BinarySphere.hpp" 00075 //#include "TAPsBVHTree_BinaryAABB.hpp" 00076 //#include "TAPsBVHTree_BinaryOBB.hpp" 00077 00078 //----------------------------------------------------------------------------- 00079 //#include "TAPsBVHTreeBSphereLeafHE.hpp" // Need to be coded! 00080 //#include "TAPsBVHTreeQSphereLeafHE.hpp" // Need to be coded! 00081 //#include "TAPsBVHTreeOSphereLeafHE.hpp" // Need to be coded! 00082 //#include "TAPsBVHTreeGSphereLeafHE.hpp" // Need to be coded! 00083 //#include "TAPsBVHTreeBAABBLeafHE.hpp" // Need to be coded! 00084 //#include "TAPsBVHTreeQAABBLeafHE.hpp" // Need to be coded! 00085 //#include "TAPsBVHTreeOAABBLeafHE.hpp" // Need to be coded! 00086 //#include "TAPsBVHTreeGAABBLeafHE.hpp" // Need to be coded! 00087 //----------------------------------------------------------------------------- 00088 00089 BEGIN_NAMESPACE_TAPs__CD 00090 //============================================================================= 00091 //----------------------------------------------------------------------------- 00097 template <typename T> 00098 BVHTree<T> * BuildBVHTree ( 00099 TransformationSupport<T> & transform, 00100 HEFaceList<T> * heFaceList, 00101 Enum::CD treeType 00102 ) 00103 { 00104 switch ( treeType ) { 00105 case Enum::BVH_TREE_BINARY_SPHERE: 00106 return new BVHTree_BinarySphere<T>( transform, heFaceList ); 00107 break; 00108 00109 default: 00110 std::cout << "(TAPsCDLib.hpp) TAPs::CD::BuildBVHTree for Tree Type (" << treeType << ") NOT IMPLEMENTED YET!\n"; 00111 break; 00112 } 00113 return NULL; 00114 } 00115 //----------------------------------------------------------------------------- 00116 //============================================================================= 00117 END_NAMESPACE_TAPs__CD 00118 //----------------------------------------------------------------------------- 00119 #endif 00120 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00121 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----