disable all debug printout

This commit is contained in:
jingyuc 2021-10-11 11:24:17 -04:00
parent 07cfa9a433
commit bd6e49bcc1
2 changed files with 3 additions and 11 deletions

View File

@ -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]];

View File

@ -15,7 +15,6 @@
#include "btDeformableMultiBodyConstraintSolver.h"
#include <iostream>
#include <chrono>
#include <thread>
// 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;
}