- This topic has 3 replies, 4 voices, and was last updated 9 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Attaching a vec3D object to a rigid 3D
I am designign a scene in which I need to attach a deformable object (a deformable spring) of the kind vec3d to a rigid body (a plate connected to spring top) of the kind rigid3d but there is no constraint I can use for both objects.any idea on how to manipulate the programm and do what I want?
Hi,
the most efficient is to use subsetmultimappings.
Warning, multimappings cannot be cleanly created in an xml scene.
Your exact situation is in several examples:
c++ scene: tutorial/compositeObject
python scene: SofaPython/compositeObject.py
Otherwise you can always use regular hard, bilateral constraints.
– Matthieu
Hello,
Indeed you cannot put constraints on objects with different types directly.
But you can achieve that anyway by using the RigidMapping on a intermediate object templated on Vec3d. And then you can attach the two vec3d model using AttachConstraint for example ; or setting a stiff spring between.
In summary: [Plate: Rigid] <- RigidMapping -> [Intermediate Vec3d] <- AttachConstraint -> [SpringObject: Vec3d]
Hi Madani,
Since you didn’t answer back to this topic, I assume your problem is solved.
Please do not hesitate to answer if it’s not.
Regards,
Guillaume.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.