33class EXPCL_PANDAPHYSX PhysxSoftBodyNode :
public GeomNode {
35 INLINE
explicit PhysxSoftBodyNode(
const char *name);
36 INLINE ~PhysxSoftBodyNode();
48 NxVec3 barycentricCoords;
52 void build_tetra_links();
53 bool update_tetra_links();
54 void update_normals();
55 void remove_tris_related_to_vertex(
const int vertexIndex);
56 NxVec3 compute_bary_coords(NxVec3 vertex, NxVec3 p0, NxVec3 p1, NxVec3 p2, NxVec3 p3)
const;
58 pvector<TetraLink> _tetraLinks;
59 pvector<bool> _drainedTriVertices;
60 pvector<LVecBase3f> _normals;
75 static void init_type() {
76 GeomNode::init_type();
78 GeomNode::get_class_type());
81 return get_class_type();
85 return get_class_type();
void set_from_geom(const Geom *geom)
Reads the vertices and indices from an existing Geom and makes a decomposed copy of the data.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...