00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXCONVEXMESHDESC_H
00016 #define PHYSXCONVEXMESHDESC_H
00017
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 #include "nodePath.h"
00021
00022 #include "physx_includes.h"
00023
00024
00025
00026
00027
00028 class EXPCL_PANDAPHYSX PhysxConvexMeshDesc {
00029
00030 PUBLISHED:
00031 INLINE PhysxConvexMeshDesc();
00032 INLINE ~PhysxConvexMeshDesc();
00033
00034 INLINE bool is_valid() const;
00035
00036 void set_num_vertices(unsigned int n);
00037 void set_vertex(unsigned int idx, const LPoint3f &vert);
00038 void set_from_node_path(const NodePath &np);
00039
00040 public:
00041 const NxConvexMeshDesc &get_desc() const;
00042
00043 private:
00044 NxVec3 *_vertices;
00045 NxConvexMeshDesc _desc;
00046 };
00047
00048 #include "physxConvexMeshDesc.I"
00049
00050 #endif // PHYSXCONVEXMESHDESC_H