The only public plugin that have s.t. interesting related to sml is Compliant, which is not focused on deformable physics.
Indeed we are using sml to simulate deformable physics, there is no restriction on what you can do with a <solid>, it is up to you to write a python function like the one found in Compliant.sml to create the desired sofa simulation graph.
Hi Fabien,
a few answers :
1) In the short term I could add a dtd for this xml format, also not sure sml is meant to stay in this SofaPython plugin.
2+3) The model description is for now generic enough for our needs, no plan to extend it further – do you have s.t. in mind ? About the scene creation scripts this is quite user/application specific, you can write your own to meet your needs.
Thomas
Hi Fabien,
The .sml files aim at describing a model whereas .scn or .py describe a simulation. When things are split that way, you can have a model description and simulate it in several ways. The SofaPython plugin contains a python package to read and store such model description, which in turn can used whithin python scripts to create a simulation.
In the SofaPython plugin you have such an example, very simple, to display a model.
In the Compliant plugin you have a more complex example “bielle_manivelle”
Thomas
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.