Panda3D

physxTriangleMeshShapeDesc.I

00001 // Filename: physxTriangleMeshShapeDesc.I
00002 // Created by:  enn0x (14Oct09)
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 
00016 
00017 ////////////////////////////////////////////////////////////////////
00018 //     Function: PhysxTriangleMeshShapeDesc::Constructor
00019 //       Access: Published
00020 //  Description:
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE PhysxTriangleMeshShapeDesc::
00023 PhysxTriangleMeshShapeDesc() : PhysxShapeDesc() {
00024 
00025   set_to_default();
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: PhysxTriangleMeshShapeDesc::Destructor
00030 //       Access: Published
00031 //  Description:
00032 ////////////////////////////////////////////////////////////////////
00033 INLINE PhysxTriangleMeshShapeDesc::
00034 ~PhysxTriangleMeshShapeDesc() {
00035 
00036 }
00037 
00038 ////////////////////////////////////////////////////////////////////
00039 //     Function: PhysxTriangleMeshShapeDesc::set_to_default
00040 //       Access: Published
00041 //  Description: (re)sets the structure to the default.
00042 ////////////////////////////////////////////////////////////////////
00043 INLINE void PhysxTriangleMeshShapeDesc::
00044 set_to_default() {
00045 
00046   _desc.setToDefault();
00047   set_name("");
00048 }
00049 
00050 ////////////////////////////////////////////////////////////////////
00051 //     Function: PhysxTriangleMeshShapeDesc::is_valid
00052 //       Access: Published
00053 //  Description: Returns true if the descriptor is valid.
00054 ////////////////////////////////////////////////////////////////////
00055 INLINE bool PhysxTriangleMeshShapeDesc::
00056 is_valid() const {
00057 
00058   return _desc.isValid();
00059 }
00060 
 All Classes Functions Variables Enumerations