I want to use this function to give a force to one extremity of this model.
I have another question, when using
“JointSpringForceFieldRigid3d::Spring s1(0, 1, softKst, hardKst, softKsr, hardKsr, blocKsr, -3.14159, 1.57080, -1.73790, 1.47379, -2.18160, 0.00010, kd);”
how it knows the 2 objects -> ie -> Object1 and Object2
because I still…[Read more]
// One solver for all the graph
EulerImplicitSolver::SPtr solver = sofa::core::objectmodel::New<EulerImplicitSolver>();
CGLinearSolver::SPtr linearSolver = New<CGLinearSolver>();
thank you for your reply
I use in the main.cpp file the JointSpringForceField class and I put the linear solver, my question is how to add addForce() in this program.
here is some line of code:
I have some questions regarding the use of a mass-spring model:
1- How to deform a mesh with a mass-spring model in C++ using addforce()
2- If we use the class JointSpringForceField how to implement the addForce() function in the main.cpp file
finally, i have added in CMakeLists the missing libraries and it is working correctly
cmake_minimum_required(VERSION 2.8.12)[Read more]
I tried to compile Main.cpp but I found a problem in CMakeLists.txt which seems to me that it is not complete. I mean there are some libraries that are not specified with target_link_librarie. I did not want to add all of them by hand since, I think this will take time to have them all and in the correct order. Could you please help me…[Read more]
I would like to write a scene in cpp but the corresponding help link is still under construction. Could you please give me some guidelines to do it ?
I already saw the example but i want to know if i can remove a part of the liver for examination, or make a wound and suture it.
Thank you sir
i am new to SOFA, i ask you please, is it possible to modify the code of liver for take a piece of soft tissue? if it is, please can you give me an example of liver.
thank you for all your help