15 #ifndef PHYSXTRIANGLEMESHDESC_H
16 #define PHYSXTRIANGLEMESHDESC_H
18 #include "pandabase.h"
22 #include "physx_includes.h"
32 INLINE ~PhysxTriangleMeshDesc();
34 INLINE
bool is_valid()
const;
36 void set_num_vertices(
unsigned int n);
37 void set_vertex(
unsigned int idx,
const LPoint3f &vert);
39 void set_num_triangles(
unsigned int n,
bool use_material_indices=
false);
40 void set_triangle(
unsigned int idx,
41 unsigned int i1,
unsigned int i2,
unsigned int i3,
42 unsigned int material_index=1);
44 void set_from_node_path(
const NodePath &np);
47 const NxTriangleMeshDesc &get_desc()
const;
52 NxMaterialIndex *_materials;
53 NxTriangleMeshDesc _desc;
56 #include "physxTriangleMeshDesc.I"
58 #endif // PHYSXTRIANGLEMESHDESC_H
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...