"OBJ" mesh not following moved "GMSH" using "BarycentricMapping" #5716
Replies: 1 comment
-
|
Hi, I have fixed the problem by adding the same transform to both meshes and including the transform position into both the collision and visual model using the 'position' input when creating the two other obejcts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have been playing around with SofaPyhton3, and i am now trying to use the 'TransformEngine' to move a 'TetrahedronSetTopologyContainer', and use a combination of 'OBJ' and 'GMSH' meshes with 'BarycentricMapping'.
I do it in the following way now:
However doing it in this way does not move the "VisualModel" defined by the "OBJ" mesh on top of the mechanical object defined by the "GMSH" mesh. Result can be seen here:
At the same time if I change the mapping from "BarycentricMapping" to "IdentityMapping", I have no problem with moving the object, as can be seen here:
But as you can see, the visual model is not really that good when I do it this way, and I am also afraid the collision model will suffer aswell by doing it in this way (please correct me if I am wrong) . Additonally I think this is also incorrect use of the mapping according to my understanding of the following tutorial https://www.youtube.com/watch?v=GKH1lTvO_YM&t=12100s
I have tried the same on the example presented in tutorial around 4:01:22 with the liver, and here aswell it does not work as intended.
Does anybody have a clue what I might have done wrong here, and how to fix this?
Btw, great tool, however needs a bit more documentation! :)
Beta Was this translation helpful? Give feedback.
All reactions