Panda3D

odeTriMeshGeom.cxx

00001 // Filename: odeTriMeshGeom.cxx
00002 // Created by:  joswilso (27Dec06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_ode.h"
00016 #include "odeTriMeshGeom.h"
00017 
00018 TypeHandle OdeTriMeshGeom::_type_handle;
00019 
00020 OdeTriMeshGeom::
00021 OdeTriMeshGeom(dGeomID id) :
00022   OdeGeom(id) {
00023 }
00024 
00025 OdeTriMeshGeom::
00026 OdeTriMeshGeom(OdeTriMeshData &data) :
00027   OdeGeom(dCreateTriMesh(0, data.get_id(), 0, 0, 0)) {
00028   OdeTriMeshData::link_data(_id, &data);
00029 }
00030 
00031 OdeTriMeshGeom::
00032 OdeTriMeshGeom(OdeSpace &space, OdeTriMeshData &data) :
00033   OdeGeom(dCreateTriMesh(space.get_id(), data.get_id(), 0, 0, 0)) {
00034   OdeTriMeshData::link_data(_id, &data);
00035 }
00036 
00037 OdeTriMeshGeom::
00038 OdeTriMeshGeom(const OdeTriMeshGeom &copy) :
00039   OdeGeom(dCreateTriMesh(0, copy.get_data_id(), 0, 0, 0)) {
00040   OdeTriMeshData::link_data(_id, copy.get_data());
00041 }
00042 
00043 OdeTriMeshGeom::
00044 ~OdeTriMeshGeom() {
00045 }
00046 
00047 void OdeTriMeshGeom::
00048 destroy() {
00049   OdeTriMeshData::unlink_data(_id);
00050 }
 All Classes Functions Variables Enumerations