diff --git a/examples/DeformableDemo/GraspDeformable.cpp b/examples/DeformableDemo/GraspDeformable.cpp index 475fa9095..7150657e5 100644 --- a/examples/DeformableDemo/GraspDeformable.cpp +++ b/examples/DeformableDemo/GraspDeformable.cpp @@ -275,12 +275,12 @@ void GraspDeformable::initPhysics() { char absolute_path[1024]; b3BulletDefaultFileIO fileio; - fileio.findResourcePath("ditto.vtk", absolute_path, 1024); +// fileio.findResourcePath("ditto.vtk", absolute_path, 1024); // fileio.findResourcePath("banana.vtk", absolute_path, 1024); // fileio.findResourcePath("ball.vtk", absolute_path, 1024); // fileio.findResourcePath("deformable_crumpled_napkin_sim.vtk", absolute_path, 1024); // fileio.findResourcePath("single_tet.vtk", absolute_path, 1024); - // fileio.findResourcePath("tube.vtk", absolute_path, 1024); + fileio.findResourcePath("tube.vtk", absolute_path, 1024); // fileio.findResourcePath("torus.vtk", absolute_path, 1024); // fileio.findResourcePath("paper_roll.vtk", absolute_path, 1024); // fileio.findResourcePath("bread.vtk", absolute_path, 1024); @@ -295,8 +295,8 @@ void GraspDeformable::initPhysics() // psb->scale(btVector3(30, 30, 30)); // for banana psb->scale(btVector3(.7, .7, .7)); // psb->scale(btVector3(2, 2, 2)); -// psb->scale(btVector3(.3, .3, .3)); // for tube, torus, boot - psb->scale(btVector3(.1, .1, .1)); // for ditto + psb->scale(btVector3(.3, .3, .3)); // for tube, torus, boot +// psb->scale(btVector3(.1, .1, .1)); // for ditto // psb->translate(btVector3(.25, 10, 0.4)); psb->getCollisionShape()->setMargin(0.0005); psb->setMaxStress(50); diff --git a/examples/DeformableDemo/Pinch.cpp b/examples/DeformableDemo/Pinch.cpp index ed811a417..07c491d89 100644 --- a/examples/DeformableDemo/Pinch.cpp +++ b/examples/DeformableDemo/Pinch.cpp @@ -231,7 +231,7 @@ void Pinch::initPhysics() btVector3 gravity = btVector3(0, -10, 0); m_dynamicsWorld->setGravity(gravity); getDeformableDynamicsWorld()->getWorldInfo().m_gravity = gravity; - + getDeformableDynamicsWorld()->getWorldInfo().m_sparsesdf.setDefaultVoxelsz(0.25); getDeformableDynamicsWorld()->setSolverCallback(dynamics); m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld);