![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsCUDA_VetexListMSM.cu 00003 ******************************************************************************/ 00016 /****************************************************************************** 00017 SUKITTI PUNAK (08/27/2008) 00018 UPDATE (09/17/2009) 00019 ******************************************************************************/ 00020 #ifndef TAPs_CUDA_VERTEX_LIST_MSM_HPP 00021 #define TAPs_CUDA_VERTEX_LIST_MSM_HPP 00022 00023 #include "TAPsCUDA_DataPool.cu" 00024 00025 BEGIN_NAMESPACE_TAPs__CUDA 00026 //============================================================================= 00027 //----------------------------------------------------------------------------- 00028 00029 00030 //============================================================================= 00032 //----------------------------------------------------------------------------- 00033 00035 void Global__ModelStrand_AdvSim ( 00036 unsigned int cudaID, 00037 unsigned int numOfVertices, 00038 unsigned int numOfThreads, 00039 float currentTime, 00040 float timeStep, 00041 int numOfSubSteps, 00042 float ptMass, 00043 float Ks, 00044 float Kd, 00045 float Lrest, 00046 float * host_vertex_data, 00047 float * host_prev_vertex_data 00048 ); 00049 00052 void Global__ModelStrand_AdvSim_ADVSIM ( 00053 unsigned int cudaID, 00054 unsigned int numOfVertices, 00055 unsigned int numOfThreads, 00056 float currentTime, 00057 float timeStep, 00058 int numOfSubSteps, 00059 float ptMass, 00060 float Ks, 00061 float Kd, 00062 float Lrest, 00063 float * host_vertex_data, 00064 float * host_prev_vertex_data, 00065 unsigned int * host_sim_flags_data, 00066 float * host_pos_constraint_data 00067 ); 00068 00069 //----------------------------------------------------------------------------- 00071 //============================================================================= 00072 00073 00074 //============================================================================= 00076 //----------------------------------------------------------------------------- 00077 00079 void Global__SimPropForMultiPartMeshModel_HalfEdge_AdvSim ( 00080 int numOfVertices, 00081 int numOfThreads, 00082 float tCurrent, 00083 float tNext, 00084 float * host_data 00085 ); 00086 00087 //----------------------------------------------------------------------------- 00089 //============================================================================= 00090 00091 00092 //============================================================================= 00094 //----------------------------------------------------------------------------- 00095 00097 void Global__HETriMeshOneModelMultiParts_AdvSim ( 00098 unsigned int cudaID, 00099 unsigned int numOfVertices, 00100 unsigned int numOfThreads, 00101 float currentTime, 00102 float timeStep, 00103 int numOfSubSteps, 00104 float ptMass, 00105 float Ks, 00106 float Kd, 00107 float HKs, 00108 float HKd, 00109 float * host_vertex_data, 00110 float * host_prev_vertex_data, 00111 float * host_home_vertex_data, 00112 int * host_connection_list, 00113 unsigned int max_connection_size 00114 ); 00115 00116 //----------------------------------------------------------------------------- 00118 //============================================================================= 00119 00121 bool InitailizeDataForVertexList ( 00122 unsigned int & cudaID, 00123 unsigned int numOfVertices, 00124 unsigned int max_connection_size, 00125 float * vertexList, 00126 float * prevVertexList, 00127 float * homeVertexList, 00128 int * vertexConnectionList 00129 ); 00130 00131 //--- Suture & Strand Model --------------------------------------------------- 00133 bool InitailizeDataForSutureModel ( 00134 unsigned int & cudaID, 00135 unsigned int numOfVertices, 00136 float * vertexList, 00137 float * prevVertexList 00138 ); 00139 //--- Suture & Strand Model --------------------------------------------------- 00142 bool InitailizeDataForSutureModel_ADVSIM ( 00143 unsigned int & cudaID, 00144 unsigned int numOfVertices, 00145 float * vertexList, 00146 float * prevVertexList, 00147 unsigned int * simFlagsList, 00148 float * posConstraintList 00149 ); 00150 00151 //============================================================================= 00152 00153 //----------------------------------------------------------------------------- 00154 //============================================================================= 00155 END_NAMESPACE_TAPs__CUDA 00156 //----------------------------------------------------------------------------- 00157 00158 #include "TAPsCUDA_VertexListMSM_Def.cu" 00159 00160 #endif 00161 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00162 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----