Mapping a 3D mesh on a 1D beam #5378
Replies: 4 comments 3 replies
-
|
Hey @peyronq1 Sorry for keeping you waiting. Sorry not to guide you further right away. Do you have any existing SOFA scene from him? |
Beta Was this translation helpful? Give feedback.
-
|
Hello @hugtalbot , No worries, thank you for your inputs! In agree with everything you said. In the example I gave above, I defined the "3D mesh", which is actually just a point cloud, as a child ('Consitutive model') of the node 'Rod' where the beam is defined. And I created it following the most recent version of Paul's code, that can be found on his gitlab (I need to check before sharing it). On my machine his code gives the same problem of the 3D nodes being projected at the base of the beam instead of following its deformations. Is it well what AdaptiveBeamMapping is supposed to do? Thank you for your time ! |
Beta Was this translation helpful? Give feedback.
-
|
Hello everyone, UPDATE: I am currently discussing this with @ChristianDuriez, who used to work with this mapping. There seems to be a problem somewhere indeed, but we have not found where yet. Concerning my initial objective, it seems I can make this 3D mesh follow the beam deformations with a SkinningMapping as well. From what I understood, this mapping does not account for an interpolation between the frames of a beam element, but taking a sufficiently high number of beam elements does the job! |
Beta Was this translation helpful? Give feedback.
-
|
Hello everyone, I would like to restart the discussion about this problem I encountered with the AdaptiveBeamMapping. As I was saying in my previous message, according to @ChristianDuriez, this mapping is the good one to use normally to couple a point cloud (the "out" mechanical state) to a beam (the "in" state). @fredroy and @epernod , I see on the history of the mapping's code that you were both working on it recently. Any idea of where this problem could come from ? I can provide more details if needed :) Big thanks in advance for your time :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
In order to model beams and rods with different cross section geometries and material properties, I would like to couple a 1D beam (from BeamAdapter) and a 3D mesh, compute the elastic forces in the mesh to reproject them later on the 1D beam, similar to the work of Paul Chaillou did on pneumatic soft robots. From what I understood, the AdaptiveBeamMapping is the component to use, but I have troubles with it. In the example of code below, I have a 1D beam and try to couple to it a 3D point cloud representing a beam with a square cross-section. The problem is at the creation of the scene, all the 3D points seem projected on the YZ plane at the base of the beam. Does someone have an idea on why, please? Do I use the right component?
Sofa and plugin version: v24.12
Python: 3.10
Thank you in advance and have a great day!
Quentin
Beta Was this translation helpful? Give feedback.
All reactions