|
@@ -15,21 +15,14 @@
|
|
|
#include "physxMeshPool.h"
|
|
#include "physxMeshPool.h"
|
|
|
#include "physxConvexMesh.h"
|
|
#include "physxConvexMesh.h"
|
|
|
#include "physxTriangleMesh.h"
|
|
#include "physxTriangleMesh.h"
|
|
|
-
|
|
|
|
|
-#if NX_USE_CLOTH_API
|
|
|
|
|
#include "physxClothMesh.h"
|
|
#include "physxClothMesh.h"
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
|
#include "physxFileStream.h"
|
|
#include "physxFileStream.h"
|
|
|
#include "virtualFileSystem.h"
|
|
#include "virtualFileSystem.h"
|
|
|
|
|
|
|
|
PhysxMeshPool::ConvexMeshes PhysxMeshPool::_convex_meshes;
|
|
PhysxMeshPool::ConvexMeshes PhysxMeshPool::_convex_meshes;
|
|
|
PhysxMeshPool::TriangleMeshes PhysxMeshPool::_triangle_meshes;
|
|
PhysxMeshPool::TriangleMeshes PhysxMeshPool::_triangle_meshes;
|
|
|
-
|
|
|
|
|
-#if NX_USE_CLOTH_API
|
|
|
|
|
PhysxMeshPool::ClothMeshes PhysxMeshPool::_cloth_meshes;
|
|
PhysxMeshPool::ClothMeshes PhysxMeshPool::_cloth_meshes;
|
|
|
-#endif
|
|
|
|
|
-
|
|
|
|
|
//PhysxMeshPool::SoftbodyMeshes PhysxMeshPool::_softbody_meshes;
|
|
//PhysxMeshPool::SoftbodyMeshes PhysxMeshPool::_softbody_meshes;
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -131,7 +124,6 @@ load_triangle_mesh(const Filename &fn) {
|
|
|
return mesh;
|
|
return mesh;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#if NX_USE_CLOTH_API
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PhysxMeshPool::load_cloth_mesh
|
|
// Function: PhysxMeshPool::load_cloth_mesh
|
|
|
// Access: Published
|
|
// Access: Published
|
|
@@ -170,7 +162,6 @@ load_cloth_mesh(const Filename &fn) {
|
|
|
|
|
|
|
|
return mesh;
|
|
return mesh;
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PhysxMeshPool::release_convex_mesh
|
|
// Function: PhysxMeshPool::release_convex_mesh
|
|
@@ -210,7 +201,6 @@ release_triangle_mesh(PhysxTriangleMesh *mesh) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#if NX_USE_CLOTH_API
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PhysxMeshPool::release_cloth_mesh
|
|
// Function: PhysxMeshPool::release_cloth_mesh
|
|
|
// Access: Published
|
|
// Access: Published
|
|
@@ -229,7 +219,6 @@ release_cloth_mesh(PhysxClothMesh *mesh) {
|
|
|
|
|
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PhysxMeshPool::list_content
|
|
// Function: PhysxMeshPool::list_content
|
|
@@ -277,7 +266,6 @@ list_contents(ostream &out) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#if NX_USE_CLOTH_API
|
|
|
|
|
// Cloth meshes
|
|
// Cloth meshes
|
|
|
{
|
|
{
|
|
|
ClothMeshes::const_iterator it;
|
|
ClothMeshes::const_iterator it;
|
|
@@ -290,7 +278,6 @@ list_contents(ostream &out) {
|
|
|
<< " references)\n";
|
|
<< " references)\n";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
|
// Summary
|
|
// Summary
|
|
|
NxPhysicsSDK *sdk = NxGetPhysicsSDK();
|
|
NxPhysicsSDK *sdk = NxGetPhysicsSDK();
|
|
@@ -301,9 +288,7 @@ list_contents(ostream &out) {
|
|
|
out << " Total number of triangle meshes: " << sdk->getNbTriangleMeshes()
|
|
out << " Total number of triangle meshes: " << sdk->getNbTriangleMeshes()
|
|
|
<< " created, " << _triangle_meshes.size() << " registred\n";
|
|
<< " created, " << _triangle_meshes.size() << " registred\n";
|
|
|
|
|
|
|
|
-#if NX_USE_CLOTH_API
|
|
|
|
|
out << " Total number of cloth meshes: " << sdk->getNbClothMeshes()
|
|
out << " Total number of cloth meshes: " << sdk->getNbClothMeshes()
|
|
|
<< " created, " << _cloth_meshes.size() << " registred\n";
|
|
<< " created, " << _cloth_meshes.size() << " registred\n";
|
|
|
-#endif
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|