TutorialMappingCubeSurface
From SOFAWiki
Tutorial : Mapping Cube Surface
Contents |
Prerequisite
- Working installation of SOFA. See http://www.sofa-framework.org/installation
Example Scene
This example is distributed inexamples/Tutorials/Basic/TutorialMappingCubeSurface.scnwithin SofaSVN and SOFA distributions starting from 1.0 beta 4.
Graph
XML Description
<?xml version="1.0" ?> <!-- See http://wiki.sofa-framework.org/mediawiki/TutorialMappingCubeSurface --> <Node name="root" dt="0.01" gravity="0 0 -9.81" showBehavior="1"> <EulerImplicitSolver name="EulerImplicit" /> <CGLinearSolver name="CG Solver" /> <MechanicalObject name="Particles" template="Vec3d" position="0 0 1 1 0 1 0 1 1 1 1 1 0 0 2 1 0 2 0 1 2 1 1 2" /> <MeshTopology name="Topology" hexas="0 4 6 2 1 5 7 3" /> <UniformMass name="Mass" totalmass="1" /> <MeshSpringForceField name="Springs" stiffness="100" damping="1" /> <PlaneForceField name="Floor" normal="0 0.2 1" stiffness="100" damping="1" draw="1" /> <PlaneForceField name="Wall" normal="0 -1 0" d="-4" stiffness="100" damping="1" draw="1" color="1 1 1" /> <Node name="Visual" > <Object type="OglModel" name="Surface" color="red"/> <Object type="IdentityMapping" object1="../../Particles" object2="Surface"/> </Node> </Node>
