Panda3D
 All Classes Functions Variables Enumerations
physxSoftBodyMeshDesc.h
1 // Filename: physxSoftBodyMeshDesc.h
2 // Created by: enn0x (12Sep10)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXSOFTBODYMESHDESC_H
16 #define PHYSXSOFTBODYMESHDESC_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "physx_includes.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxSoftBodyMeshDesc
25 // Description :
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDAPHYSX PhysxSoftBodyMeshDesc {
28 
29 PUBLISHED:
30  INLINE PhysxSoftBodyMeshDesc();
31  INLINE ~PhysxSoftBodyMeshDesc();
32 
33  INLINE bool is_valid() const;
34 
35  void set_num_vertices(unsigned int n);
36  void set_vertex(unsigned int idx,
37  const LPoint3f &vert);
38 
39  void set_num_tetrahedra(unsigned int n);
40  void set_tetrahedron(unsigned int idx,
41  unsigned int i1,
42  unsigned int i2,
43  unsigned int i3,
44  unsigned int i4);
45 
46 public:
47  INLINE const NxSoftBodyMeshDesc &get_desc() const;
48 
49 private:
50  NxSoftBodyMeshDesc _desc;
51  NxVec3 *_vertices;
52  NxU32 *_tetrahedra;
53 };
54 
55 #include "physxSoftBodyMeshDesc.I"
56 
57 #endif // PHYSXSOFTBODYMESHDESC_H
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99