|
30 | 30 | <VisualStyle displayFlags="showVisual"/> |
31 | 31 |
|
32 | 32 | <!-- Define Mouse left click as a Bilateral Lagrangian constraint --> |
33 | | - <ConstraintAttachButtonSetting /> |
| 33 | + <ConstraintAttachButtonSetting/> |
| 34 | + |
| 35 | + <!-- Drawing the world coordinate axis --> |
| 36 | + <LineAxis infinite="true" vanishing="true" thickness="1"/> |
34 | 37 |
|
35 | 38 | <!-- Header of the simulation --> |
36 | 39 | <!-- This animation loop will add steps in the time intyegration to enable Lagrangian-based constraint solving |
|
54 | 57 | <!-- Non-simulated node used to create underlying deformable topology --> |
55 | 58 | <Node name="BeamDomainFromGridTopology"> |
56 | 59 | <!-- Computes a hexahedral topology based on a parametric grid --> |
57 | | - <RegularGridTopology name="HexaTop" n="15 3 6" min="0 0.02 0" max="0.5 0.08 0.22"/> |
| 60 | + <RegularGridTopology name="HexaTop" n="15 3 6" min="-0.25 0.02 0.5" max="0.25 0.08 0.72"/> |
58 | 61 |
|
59 | 62 | <Node name="TetraTopology"> |
60 | 63 | <!-- Transform the hexahedral topology into a tetrahedral topology |
|
106 | 109 |
|
107 | 110 | <!-- Visual model is made up of all the parts of the logo, mapped using barycentric mapping --> |
108 | 111 | <Node name="VisuLogo"> |
109 | | - <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/LogoVisu.obj" scale3d="0.015 0.015 0.015" translation="0 0.05 0" rotation="180 0 0"/> |
| 112 | + <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/LogoVisu.obj" scale3d="0.015 0.015 0.015" translation="-0.25 0.05 0.5" rotation="180 0 0"/> |
110 | 113 | <!-- This replaces MechanicalObject for nodes that are only there for visualization --> |
111 | 114 | <OglModel name="VisualModel" color="0.7 .35 0 1.0" position="@SurfaceLoader.position" triangles="@SurfaceLoader.triangles" /> |
112 | 115 | <BarycentricMapping name="MappingVisu" input="@../mstate" output="@VisualModel" isMechanical="false" /> |
113 | 116 | </Node> |
114 | 117 |
|
115 | 118 | <Node name="VisuS"> |
116 | | - <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/SVisu.obj" scale3d="0.015 0.015 0.015" translation="0 0.05 0" rotation="180 0 0"/> |
| 119 | + <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/SVisu.obj" scale3d="0.015 0.015 0.015" translation="-0.25 0.05 0.5" rotation="180 0 0"/> |
117 | 120 | <OglModel name="VisualModel" color="0.7 0.7 0.7 1" position="@SurfaceLoader.position" triangles="@SurfaceLoader.triangles" /> |
118 | 121 | <BarycentricMapping name="MappingVisu" input="@../mstate" output="@VisualModel" isMechanical="false" /> |
119 | 122 | </Node> |
120 | 123 |
|
121 | 124 | <Node name="VisuO"> |
122 | | - <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/O.obj" scale3d="0.015 0.015 0.015" translation="0 0.05 0" rotation="180 0 0"/> |
| 125 | + <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/O.obj" scale3d="0.015 0.015 0.015" translation="-0.25 0.05 0.5" rotation="180 0 0"/> |
123 | 126 | <OglModel name="VisualModel" color="0.7 0.7 0.7 1" position="@SurfaceLoader.position" triangles="@SurfaceLoader.triangles" /> |
124 | 127 | <BarycentricMapping name="MappingVisu" input="@../mstate" output="@VisualModel" isMechanical="false" /> |
125 | 128 | </Node> |
126 | 129 |
|
127 | 130 | <Node name="VisuF"> |
128 | | - <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/FVisu.obj" scale3d="0.015 0.015 0.015" translation="0 0.05 0" rotation="180 0 0"/> |
| 131 | + <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/FVisu.obj" scale3d="0.015 0.015 0.015" translation="-0.25 0.05 0.5" rotation="180 0 0"/> |
129 | 132 | <OglModel name="VisualModel" color="0.7 0.7 0.7 1" position="@SurfaceLoader.position" triangles="@SurfaceLoader.triangles" /> |
130 | 133 | <BarycentricMapping name="MappingVisu" input="@../mstate" output="@VisualModel" isMechanical="false" /> |
131 | 134 | </Node> |
132 | 135 |
|
133 | 136 | <Node name="VisuA"> |
134 | | - <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/AVisu.obj" scale3d="0.015 0.015 0.015" translation="0 0.05 0" rotation="180 0 0"/> |
| 137 | + <MeshOBJLoader name="SurfaceLoader" filename="mesh/SofaScene/AVisu.obj" scale3d="0.015 0.015 0.015" translation="-0.25 0.05 0.5" rotation="180 0 0"/> |
135 | 138 | <OglModel name="VisualModel" color="0.7 0.7 0.7 1" position="@SurfaceLoader.position" triangles="@SurfaceLoader.triangles" /> |
136 | 139 | <BarycentricMapping name="MappingVisu" input="@../mstate" output="@VisualModel" isMechanical="false" /> |
137 | 140 | </Node> |
|
147 | 150 | <VisualStyle displayFlags="showCollisionModels"/> |
148 | 151 | <!-- Surface triangles are defined by hand --> |
149 | 152 | <TriangleSetTopologyContainer name="CubeTopo" |
150 | | - position="0.2 0 -0.5 0.2 0.1 -0.5 0.3 0.1 -0.5 0.3 0 -0.5 |
151 | | - 0.2 0 -0.6 0.2 0.1 -0.6 0.3 0.1 -0.6 0.3 0 -0.6" |
| 153 | + position="-0.05 0 0 -0.05 0.1 0 0.05 0.1 0 0.05 0 0 |
| 154 | + -0.05 0 -0.1 -0.05 0.1 -0.1 0.05 0.1 -0.1 0.05 0 -0.1" |
152 | 155 | triangles="0 2 1 0 3 2 |
153 | 156 | 0 1 5 0 5 4 |
154 | 157 | 0 4 7 0 7 3 |
|
0 commit comments