Thank You for your suggestion. I will test it out.
Meanwhile, I worked around it by writing a python script to print out indices from nearestPointROI component to a text file and using indices to link springs from that file.
Right now I am struggling with collision detection in sofa. When I set my models for collision(triangle/sphere…[Read more]
I just changed drawPoints() function in draw function of BoxROI with draw3DText_Indices(). But i think it is giving me the index of points in roi but not in mesh.
Sorry could not figure out the proper way to follow what you said. Would you mind helping me do this?
Also, if I have to check for some event in each frame like checking…[Read more]
Thank You I am trying try all the methods you suggested.
How do we show indices in a region? Using showIndices in mechanical object gives unreadable indices so I tried using BoxROI with show indices to only show indices of some region I am interested in but it is not working with message unused attribute showIndices. Anyway we can show…[Read more]
Yes there is already a plugin in development.
This is the website taking you to the plugin. Contact the developer regarding your usage requirements.
Its quite performant and integrates well with unity but you should have working/basic knowledge in sofa framework to begin using the plugin.
Thank you @Hugo.
I am now trying to create a component based on SpringForceField. But what concerns me is I have to provide the indices of the meshes manually to be linked to make the spring. I am currently using unity3D plugin for sofa and I am testing a lot of stuffs and changes are very frequent, also of the meshes. Is there any way I can…[Read more]
sorry I dont quite understand what you want me to look at the freeanimationloop.scn.
Let me put my situation more clearly.
I am trying to model fatty tissue that is between two organs, Liver and gallbladder. Here is the xml scene for modelling fatty tissue between liver and gallbladder.
<?xml version="1.0" ?>[Read more]
Thank you very much for your help. I was able to build the templateattachconstraint plugin.
Is removing the indices best way to remove an attach constraint at point of contact? I want to create an interaction where based on the contact of the instrument with the attached object, the constraints are removed at the point of contact and…[Read more]
Thank you for your help.
However when I try to build sofa using this, I get error “Cannot open include file sofa/component/projectiveconstraintset/AttachConstraint.h”:No such file or directory.
I am trying to build using windows 10 and visual studio 2017.
My cmakelists.txt file:
Sorry to trouble you again.
I was trying to make a component using c++ inheriting from attach constraint.
But I am lost in the sense of how to begin?
I looked at the link you shared and pluginExample project. But very confused by what modules and namespaces is needed,what header files to include and how to create the cmakeList file.…[Read more]
Thank you for the answer.
Is there any example of creating component inheriting from other components in SOFA? I am having tough time figuring a way to create custom component and use them in SOFA scene.
Any help would be highly appreciated.
Thank you for the suggestion.
As you suggested, first we were trying to create spring force field between two objects then create the component if it functions well.We were looking at the StiffSpringField.scn and the indices to spring parameter are given manually in the scene. Is there any way I can use NearestPointROI to get the…[Read more]
We are trying to something similar. In our case, We need two objects, liver and gallbladder, attached to each other and we need to stretch the gallbladder and it breaks of the liver. We were going through the python scripting tutorial and pdf file provided in the tutorial page but still confused on how we can do this?
Any help will be highly…[Read more]