![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsCDFnsForModelElasticRod.cpp 00003 SUKITTI PUNAK (04/14/2010) 00004 UPDATE (05/01/2010) 00005 ******************************************************************************/ 00006 #include "TAPsCDFnsForModelElasticRod.hpp" 00007 // Using Inclusion Model (i.e. definitions are included in declarations) 00008 // (this name.cpp is included in name.hpp) 00009 // Each friend is defined directly inside its declaration. 00010 00011 #ifdef TAPs_MODEL_ELASTIC_ROD_HPP 00012 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00013 00014 BEGIN_NAMESPACE_TAPs__CD__Fn 00015 //============================================================================= 00016 //----------------------------------------------------------------------------- 00017 00018 00019 #ifdef TAPs_BOUNDING_VOLUME_HPP 00020 //============================================================================= 00021 //----------------------------------------------------------------------------- 00022 //----------------------------------------------------------------------------- 00023 //============================================================================= 00024 #endif//TAPs_BOUNDING_VOLUME_HPP 00025 00026 00027 00028 00029 #ifdef TAPs_MULTI_BOUNDING_VOLUME_HPP 00030 //============================================================================= 00031 //----------------------------------------------------------------------------- 00032 template <typename T> 00033 bool CDR ( 00034 TAPs::ModelElasticRod<T> * pERObj, 00035 TAPs::MultiBoundingVolume<T> * const pMBVObj, 00036 TAPs::TransformationSupport<T> * const pTransform 00037 ) 00038 { 00039 // Clear the cd force of all the elastic rod's nodes 00040 //pERObj->ClearExternalForces(); 00041 return pERObj->CDRwith( pMBVObj, pTransform ); 00042 } 00043 // END: CDR_ElasticRod_vs_MBV(...) 00044 //----------------------------------------------------------------------------- 00045 //============================================================================= 00046 #endif//TAPs_MULTI_BOUNDING_VOLUME_HPP 00047 00048 00049 00050 00051 #ifdef TAPs_HE_TRI_MESH_ONE_MODEL_MULTI_PARTS 00052 //============================================================================= 00053 //----------------------------------------------------------------------------- 00054 template <typename T> 00055 bool CDR ( 00056 TAPs::ModelElasticRod<T> * pERObj, 00057 TAPs::OpenGL::HETriMeshOneModelMultiParts<T> * pObj, 00058 TransformationSupport<T> * const pTransform 00059 ) 00060 { 00061 return pERObj->CDRwith( pObj, pTransform ); 00062 } 00063 // END: CDRigid_PolygonalMesh_vs_MBV(...) 00064 //----------------------------------------------------------------------------- 00065 //============================================================================= 00066 #endif//TAPs_HE_TRI_MESH_ONE_MODEL_MULTI_PARTS 00067 00068 00069 00070 00071 //----------------------------------------------------------------------------- 00072 //============================================================================= 00073 END_NAMESPACE_TAPs__CD__Fn 00074 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00075 #endif//TAPs_MODEL_ELASTIC_ROD_HPP 00076 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00077 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----