Skip to content

How to apply displacement to specific nodes of a TetrahedralMesh? #5179

Discussion options

You must be logged in to vote

Hello

This is fairly easy to do. You can use BilateralLagrangianConstraint to impose the position of a subset of points of the model. See here an example : https://github.com/sofa-framework/sofa/blob/master/examples/Component/Constraint/Lagrangian/BilateralLagrangianConstraint_NNCG.scn

In this example all of the objects are simulated, but one of the two inputed object can be only a node containing a MechanicalStatethat contains the target points without any solvers of mechanics attached. Make sure to put this node in the rootNode, not as a child of any of the node of your liver.

Tell me how it goes !

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlanConnorChen
Comment options

Answer selected by AlanConnorChen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants