turn on SVD and use fewer CG iterations
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include "btDeformableBodySolver.h"
|
||||
#include "btSoftBodyInternals.h"
|
||||
#include "LinearMath/btQuickprof.h"
|
||||
static const int kMaxConjugateGradientIterations = 200;
|
||||
static const int kMaxConjugateGradientIterations = 50;
|
||||
btDeformableBodySolver::btDeformableBodySolver()
|
||||
: m_numNodes(0)
|
||||
, m_cg(kMaxConjugateGradientIterations)
|
||||
|
||||
@@ -175,7 +175,8 @@ public:
|
||||
btSoftBody::Tetra& tetra = psb->m_tetras[j];
|
||||
btMatrix3x3 P;
|
||||
firstPiola(psb->m_tetraScratches[j],P);
|
||||
#if USE_SVD
|
||||
#define USE_SVD 1
|
||||
#ifdef USE_SVD
|
||||
if (max_p > 0)
|
||||
{
|
||||
// since we want to clamp the principal stress to max_p, we only need to
|
||||
|
||||
Reference in New Issue
Block a user