- This topic has 4 replies, 4 voices, and was last updated 6 years, 2 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › Carving Grid topology
Tagged: 64_bits, carving, grid, Linux_ubuntu, SOFA_1706
Hello Friends.
How can we use Carving on a Grid Topology?
Thank you.
Hello.
I worked on this problem about 3 days and finally found a solution.
I will share my solution soon here.
Thank you for your attention.
Great to hear Binesh! thanks for sharing so much @secretdevil!
Looking forward to your simulation scene
Hi,
yes you need a tetrahedron topology. I checked and only triangle model collision is working well at the moment. So you will need something like (code not tested):
<CarvingManager active="true" />
<Node name="Grid" >
<RegularGrid name="HexaTop" n="12 12 12" min="-10 -6 -10" max="10 14 10" />
<MechanicalObject name="ms" position="@HexaTop.position" />
<TetrahedronSetTopologyContainer name="Container" position="@HexaTop.position" />
<TetrahedronSetTopologyModifier name="Modifier"/>
<Hexa2TetraTopologicalMapping input="@HexaTop" output="@Container" swapping="false" />
</Node>
<Node name="Surface" >
<TriangleSetTopologyContainer name="Container"/>
<TriangleSetTopologyModifier name="Modifier"/>
<Tetra2TriangleTopologicalMapping input="@../Grid/Container" output="@Container" flipNormals="true"/>
<TriangleSet name="triangleCol" tags="CarvingSurface"/>
</Node>
<Node name="carvingElement">
<MechanicalObject name="Particles" template="Vec3d" position="0 0 1.4" velocity="0 0 0"/>
<UniformMass name="Mass" totalMass="1.0" />
<SphereModel radius="0.02" tags="CarvingTool"/>
</Node>
++Erik
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.