00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 INLINE OdeTriMeshData::TriMeshDataMap &OdeTriMeshData::
00016 get_tri_mesh_data_map() {
00017 if (_tri_mesh_data_map == (TriMeshDataMap *)NULL) {
00018 _tri_mesh_data_map = new TriMeshDataMap;
00019 }
00020 return *_tri_mesh_data_map;
00021 }
00022
00023 INLINE dTriMeshDataID OdeTriMeshData::
00024 get_id() const {
00025 return _id;
00026 }
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 INLINE void OdeTriMeshData::
00041 build_single(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride) {
00042 odetrimeshdata_cat.debug() << "build_single(" << vertices << ", " << vertex_stride << ", " << vertex_count << ", " << indices << ", " << index_count << ", " << tri_stride << ")\n";
00043 dGeomTriMeshDataBuildSingle(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride);
00044 }
00045
00046 INLINE void OdeTriMeshData::
00047 build_single1(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride, const void* normals) {
00048 dGeomTriMeshDataBuildSingle1(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride, normals);
00049 }
00050
00051 INLINE void OdeTriMeshData::
00052 build_double(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride) {
00053 dGeomTriMeshDataBuildDouble(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride);
00054 }
00055
00056 INLINE void OdeTriMeshData::
00057 build_double1(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride, const void* normals) {
00058 dGeomTriMeshDataBuildDouble1(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride, normals);
00059 }
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075 INLINE void OdeTriMeshData::
00076 preprocess() {
00077 dGeomTriMeshDataPreprocess(_id);
00078 }
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096