diff options
Diffstat (limited to 'src/BulletSoftBody/btSoftBodyHelpers.h')
-rw-r--r-- | src/BulletSoftBody/btSoftBodyHelpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/BulletSoftBody/btSoftBodyHelpers.h b/src/BulletSoftBody/btSoftBodyHelpers.h index b292d90d1..d1fdf0450 100644 --- a/src/BulletSoftBody/btSoftBodyHelpers.h +++ b/src/BulletSoftBody/btSoftBodyHelpers.h @@ -17,6 +17,7 @@ subject to the following restrictions: #define BT_SOFT_BODY_HELPERS_H #include "btSoftBody.h" +#include "../../examples/CommonInterfaces/CommonFileIOInterface.h" #include <fstream> #include <string> // @@ -146,6 +147,10 @@ struct btSoftBodyHelpers static void writeObj(const char* file, const btSoftBody* psb); + static void writeState(const char* file, const btSoftBody* psb); + + static std::string loadDeformableState(btAlignedObjectArray<btVector3>& qs, btAlignedObjectArray<btVector3>& vs, const char* filename, CommonFileIOInterface* fileIO); + static void getBarycentricWeights(const btVector3& a, const btVector3& b, const btVector3& c, const btVector3& d, const btVector3& p, btVector4& bary); static void getBarycentricWeights(const btVector3& a, const btVector3& b, const btVector3& c, const btVector3& p, btVector4& bary); |