Home › Forum › SOFA › Using SOFA › [SOLVED] Document about xml grammar
- This topic has 4 replies, 2 voices, and was last updated 8 years ago by
Hugo.
-
AuthorPosts
-
31 January 2017 at 23:19 #8478
Toan Nguyen
BlockedHi,
I want to use SOFAfor my project of building a navigation system for the minimally invasive liver resection. I have started to learn to write a scene in XML but I could not find some document about how to write it with correct grammar.
The modeler should be a good way to show what I can do with each component but it is suspended now. Please help me to find a proper guide to use SOFA.
Thanks,
Toan
31 January 2017 at 23:28 #8480Hugo
KeymasterDear Toan,
Do not hesitate to have a look to the video tutorials and to all examples available in sofa_root/examples/Components which show the behaviour of each component. You run also use the Tutorial scene files in sofa_root/examples/Tutorials.
Let us know if it helps.
If you need more support, do not hesitate to describe us what kind of simulation you want to achieve we could help you through the forum or with a specific support.Best,
Hugo
2 February 2017 at 17:59 #8500Toan Nguyen
BlockedHi Hugo,
I did some tutorials and on the way of building my own scene. To save the learning time, can you give me some directions about which component I should focus to do those tasks below
1. Deforming my liver model to match with an upper surface I obtained intraoperatively.
2. Cutting the liver into 2 parts
3. Visualize the inner structure/tumor inside the liver. The video of SOFA I saw on youtube at https://youtu.be/xvdmuf686tI is very impressive. I wonder how I can change the visualization on the fly to show the vessels inside but still see the transparent liver outside.Any suggestion would be a big help to me.
Thanks,
Toan
2 February 2017 at 18:47 #8502Hugo
KeymasterHi Toan,
- For non-rigid registration (I think that’s what you want to achieve), you can have a look at the registration plugin (applications/plugins) and its examples.
- Cutting is done through topological changes. To do so, you will have to implement your manager for topological change. But there is nice examples based on the component : TopologicalModifier. See examples in examples/Components/topology/TopologicalModifiers.
- For advanced rendering, you need to use shaders. Again, examples are available for this in examples/Components/visualmodel.
Hope this helps.
Cheers,Hugo
14 February 2017 at 23:58 #8582Hugo
KeymasterHi Toan,
Did my previous reply help?
If yes, I would close this topic.Best regards,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.