Home › Forum › SOFA › Using SOFA › [SOLVED] Working example on simple suturing with SuturePointPerformer
Tagged: 64_bits, Plugin_other, SOFA_1912, SofaUserInteraction, Windows_10
- This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by ingmarvoigt.
-
AuthorPosts
-
11 June 2020 at 08:55 #16541ingmarvoigtBlocked
Dear all,
I am trying to test the simple suturing that seems to be supported in Sofa via the mouse manager https://www.sofa-framework.org/community/doc/using-sofa/interact-with-the-mouse/#add-a-spring-to-suture-two-points, however I cannot seem to find a working example to apply this
I already read other threads in this forum, which seem to refer more advanced works and complex use cases now being proprietary implementations:
* https://www.sofa-framework.org/community/forum/topic/about-the-suturing-simulation/
* https://www.sofa-framework.org/community/forum/topic/suturing-simulaton-in-sofa/
* https://www.sofa-framework.org/community/forum/topic/the-collision-detection-algorithm-in-suturing-simualtion/Instead I would just like to use the built-in SuturePointPerformer which either (1) fails with the following error msg:
[WARNING] [MouseInteractor(MouseInteractor)] Error: SuturePointPerformer no picked body in first clic.
(see https://github.com/sofa-framework/sofa/blob/v19.12/modules/SofaUserInteraction/SuturePointPerformer.inl#L58, which indicates a TriangleCollisionModel is required)
or (2) fails with this way:
[ERROR] [MouseOperation] SuturePoints performer cannot be created with the picked model.
(see https://github.com/sofa-framework/sofa/blob/v19.12/applications/sofa/gui/MouseOperations.cpp#L58), tested with https://github.com/sofa-framework/sofa/blob/v19.12/examples/Components/collision/OBBTri.scn, which definitely contains a TriangleCollisionModel
Is there any working example to test this feature?
Thanks a lot in advance!
30 July 2020 at 14:38 #16990HugoKeymasterDear ingmarvoigt,
I am really sorry for not getting back to you earlier, the open-source project takes us plenty of time. Welcome on the forum and thank you for your interest.
Modeling suture is a complex topic, investigated several years ago in the community, and which arose again recently.
Suturing can be simplified by using springs between points which will simulate the closing of two tissue parts. For spring models, you can take a look at the SpringForceField. See the examples:
– with linear spring examples/Components/forcefield/StiffSpringForceField.scn
– with polynomial spring examples/Components/forcefield/PolynomialSpringsForceField.scnIndeed, as explained in other topics, more advanced work are conducted jointly between a research team and the company InSimo. I would be glad to connect you directly to these guys!
Could you share your scene involving the SuturePointPerformer please? It is a feature which was not recently used, but I can definitely spend some time looking at it.
Best.Hugo
30 July 2020 at 14:46 #16991ingmarvoigtBlockedGood to know, thanks a lot Hugo! Indeed for now a simple spring did the job sufficiently well for me
-
AuthorPosts
- You must be logged in to reply to this topic.