00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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
00025
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