From bd6e49bcc1608ca05b7eaea08fc48c24aa90a535 Mon Sep 17 00:00:00 2001 From: jingyuc Date: Mon, 11 Oct 2021 11:24:17 -0400 Subject: [PATCH] disable all debug printout --- .../BulletReducedSoftBody/btReducedSoftBodySolver.cpp | 6 +++--- .../btDeformableMultiBodyConstraintSolver.cpp | 8 -------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/BulletSoftBody/BulletReducedSoftBody/btReducedSoftBodySolver.cpp b/src/BulletSoftBody/BulletReducedSoftBody/btReducedSoftBodySolver.cpp index 9a839f876..414b551d2 100644 --- a/src/BulletSoftBody/BulletReducedSoftBody/btReducedSoftBodySolver.cpp +++ b/src/BulletSoftBody/BulletReducedSoftBody/btReducedSoftBodySolver.cpp @@ -220,8 +220,8 @@ void btReducedSoftBodySolver::setConstraints(const btContactSolverInfo& infoGlob m_nodeRigidConstraints[i].push_back(constraint); rsb->m_contactNodesList.push_back(contact.m_node->index); } - std::cout << "contact node list size: " << rsb->m_contactNodesList.size() << "\n"; - std::cout << "#contact nodes: " << m_nodeRigidConstraints[i].size() << "\n"; + // std::cout << "contact node list size: " << rsb->m_contactNodesList.size() << "\n"; + // std::cout << "#contact nodes: " << m_nodeRigidConstraints[i].size() << "\n"; // set Deformable Face vs. Rigid constraint // for (int j = 0; j < rsb->m_faceRigidContacts.size(); ++j) @@ -314,7 +314,7 @@ btScalar btReducedSoftBodySolver::solveContactConstraints(btCollisionObject** de // handle contact constraint // node vs rigid contact - std::cout << "!!#contact_nodes: " << m_nodeRigidConstraints[i].size() << '\n'; + // std::cout << "!!#contact_nodes: " << m_nodeRigidConstraints[i].size() << '\n'; for (int k = 0; k < m_nodeRigidConstraints[i].size(); ++k) { btReducedDeformableNodeRigidContactConstraint& constraint = m_nodeRigidConstraints[i][m_orderContactConstraintPool[k]]; diff --git a/src/BulletSoftBody/btDeformableMultiBodyConstraintSolver.cpp b/src/BulletSoftBody/btDeformableMultiBodyConstraintSolver.cpp index 8854cc8d4..c2db71fe2 100644 --- a/src/BulletSoftBody/btDeformableMultiBodyConstraintSolver.cpp +++ b/src/BulletSoftBody/btDeformableMultiBodyConstraintSolver.cpp @@ -15,7 +15,6 @@ #include "btDeformableMultiBodyConstraintSolver.h" #include -#include #include // override the iterations method to include deformable/multibody contact btScalar btDeformableMultiBodyConstraintSolver::solveDeformableGroupIterations(btCollisionObject** bodies, int numBodies, btCollisionObject** deformableBodies, int numDeformableBodies, btPersistentManifold** manifoldPtr, int numManifolds, btTypedConstraint** constraints, int numConstraints, const btContactSolverInfo& infoGlobal, btIDebugDraw* debugDrawer) @@ -42,11 +41,6 @@ btScalar btDeformableMultiBodyConstraintSolver::solveDeformableGroupIterations(b // solver body velocity <- rigid body velocity writeToSolverBody(bodies, numBodies, infoGlobal); - std::cout << "iter: " << iteration << "\tres: " << m_leastSquaresResidual << '\t'; - std::cout << "------------------\n"; - // std::cout << infoGlobal.m_leastSquaresResidualThreshold << '\n'; - // std::cout << maxIterations << '\n'; - if (m_leastSquaresResidual <= infoGlobal.m_leastSquaresResidualThreshold || (iteration >= (maxIterations - 1))) { #ifdef VERBOSE_RESIDUAL_PRINTF @@ -66,8 +60,6 @@ btScalar btDeformableMultiBodyConstraintSolver::solveDeformableGroupIterations(b break; } } - std::cout << "======next step=========\n"; - // std::this_thread::sleep_for(std::chrono::milliseconds(100)); } return 0.f; }