Panda3D

physxSoftBodyMeshDesc.h

00001 // Filename: physxSoftBodyMeshDesc.h
00002 // Created by:  enn0x (12Sep10)
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 #ifndef PHYSXSOFTBODYMESHDESC_H
00016 #define PHYSXSOFTBODYMESHDESC_H
00017 
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 
00021 #include "physx_includes.h"
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //       Class : PhysxSoftBodyMeshDesc
00025 // Description :
00026 ////////////////////////////////////////////////////////////////////
00027 class EXPCL_PANDAPHYSX PhysxSoftBodyMeshDesc {
00028 
00029 PUBLISHED:
00030   INLINE PhysxSoftBodyMeshDesc();
00031   INLINE ~PhysxSoftBodyMeshDesc();
00032 
00033   INLINE bool is_valid() const;
00034 
00035   void set_num_vertices(unsigned int n);
00036   void set_vertex(unsigned int idx,
00037                   const LPoint3f &vert);
00038 
00039   void set_num_tetrahedra(unsigned int n);
00040   void set_tetrahedron(unsigned int idx,
00041                        unsigned int i1,
00042                        unsigned int i2,
00043                        unsigned int i3,
00044                        unsigned int i4);
00045 
00046 public:
00047   INLINE const NxSoftBodyMeshDesc &get_desc() const;
00048 
00049 private:
00050   NxSoftBodyMeshDesc _desc;
00051   NxVec3 *_vertices;
00052   NxU32 *_tetrahedra;
00053 };
00054 
00055 #include "physxSoftBodyMeshDesc.I"
00056 
00057 #endif // PHYSXSOFTBODYMESHDESC_H
 All Classes Functions Variables Enumerations