SOFA Mesh Files #5644
Replies: 3 comments
-
|
Hello, Tags are there to enforce some mechanisms, such as filtering for some solvers. Groups are differents and are specific to solvers. And to be honest, I didn't see any use of it in the API, it fells like it is deprecated. The mechanism But given the code line you shared, it feels like you are using Python. If so, why even bother using SOFA component to deal with loading of file ? You could do it with your own python class, unrelated to SOFA object and just use the data as input of your topology. Tell me if this solves your issue ? |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m trying to import multiple geometries (Part 1, Part 2, etc.) from a single mesh file (mymesh.k). I initially thought that tags could be used for this purpose, but it seems they have a different meaning—or perhaps I'm not using them correctly. (I built a key file reader, scanned and grouped the elements (generally beam/edge). I can see the edgeGroups. Yet I cannot assign each group to a certain SOFAnode such as "rail.addObject('MeshTopology', src='@../meshLoaderSleeper',drawEdges=True,tags=1)"
Is there a way to import multiple geometries from the same file, rather than uploading each one individually? This is important because I want to create a system like a mass-spring model (e.g., a beam supported by two springs. Indeed, my focus is on train-track interaction). When I import the parts separately, it seems I need to use constraints to merge duplicate nodes at the support points, which becomes problematic for large geometries.
Any help would be much appreciated.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions