17 INLINE PhysxClothMeshDesc::
18 PhysxClothMeshDesc() {
21 _desc.pointStrideBytes =
sizeof(NxVec3);
22 _desc.triangleStrideBytes = 3*
sizeof(NxU32);
23 _desc.points =
nullptr;
24 _desc.triangles =
nullptr;
34 INLINE PhysxClothMeshDesc::
35 ~PhysxClothMeshDesc() {
56 return _desc.isValid();
62 INLINE
const NxClothMeshDesc &PhysxClothMeshDesc::
72 get_texcoords()
const {
76 for (
unsigned int i=0; i < _desc.numVertices; i++) {
77 LPoint2f uv = _texcoords[i];
78 texcoords.push_back(uv);
bool is_valid() const
Returns true if the descriptor is valid.
This is our own Panda specialization on the default STL list.