11 June 2020 at 8 h 55 min #16541ingmarvoigtParticipant
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:
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 h 38 min #16990HugoKeymaster
- SOFA Consortium
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.scn
Indeed, 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.
Hugo30 July 2020 at 14 h 46 min #16991ingmarvoigtParticipant
Good to know, thanks a lot Hugo! Indeed for now a simple spring did the job sufficiently well for me
- You must be logged in to reply to this topic.