Panda3D
physxConvexMeshDesc.h
1 // Filename: physxConvexMeshDesc.h
2 // Created by: enn0x (11Oct09)
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 PHYSXCONVEXMESHDESC_H
16 #define PHYSXCONVEXMESHDESC_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 #include "nodePath.h"
21 
22 #include "physx_includes.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : PhysxConvexMeshDesc
26 // Description :
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAPHYSX PhysxConvexMeshDesc {
29 
30 PUBLISHED:
31  INLINE PhysxConvexMeshDesc();
32  INLINE ~PhysxConvexMeshDesc();
33 
34  INLINE bool is_valid() const;
35 
36  void set_num_vertices(unsigned int n);
37  void set_vertex(unsigned int idx, const LPoint3f &vert);
38  void set_from_node_path(const NodePath &np);
39 
40 public:
41  const NxConvexMeshDesc &get_desc() const;
42 
43 private:
44  NxVec3 *_vertices;
45  NxConvexMeshDesc _desc;
46 };
47 
48 #include "physxConvexMeshDesc.I"
49 
50 #endif // PHYSXCONVEXMESHDESC_H
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165