Merging more than 2 meshes using MergeMesh #2760
-
Hi, Isn't it possible to merge more than two meshes by using MergeMesh? There is "nbMesh" for defining the number of meshes, but it seems that it is not working. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Merging mesh should rather be done in a real mesh tools than SOFA. <MergeMeshes name="basis" nbMeshes="2"
position1="@frog.position"
triangles1="@frog.triangles"
position2="@dragon.position"
triangles2="@dragon.triangles"
/> Did you try something like : <MergeMeshes name="basis" nbMeshes="3"
position1="@frog.position"
triangles1="@frog.triangles"
position2="@dragon.position"
triangles2="@dragon.triangles"
position3="@cube.position"
triangles3="@cube.triangles"
/> ? |
Beta Was this translation helpful? Give feedback.
-
Hi @hugo,
Yes I tried that and it didn't work. So I used mergeMesh twice to
concatenate 3 meshes.
…On Fri, Mar 25, 2022 at 6:20 PM Hugo ***@***.***> wrote:
@zbounik <https://github.com/zbounik>
Merging mesh should rather be done in a real mesh tools than SOFA.
I never used the *MergeMeshes*. What is shown in the example in
examples/Component/engine/MergeMeshes
<https://github.com/sofa-framework/sofa/blob/master/examples/Components/engine/MergeMeshes.scn>.scn
is:
<MergeMeshes name="basis" nbMeshes="2"
***@***.***"
***@***.***"
***@***.***"
***@***.***"
/>
Did you try something like :
<MergeMeshes name="basis" nbMeshes="3"
***@***.***"
***@***.***"
***@***.***"
***@***.***"
***@***.***"
***@***.***"
/>
?
—
Reply to this email directly, view it on GitHub
<#2760 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGH3RJ3ABWH7F6YMYBJMC6TVBXAA7ANCNFSM5P7TPEGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am not sure but I think I didn't receive a specific error relating to the mergeMesh, however the scene didn't work correctly. Then I noticed that mergeMesh only concatenates the first two meshes. |
Beta Was this translation helpful? Give feedback.
-
Hi @hugtalbot, Sorry for the late reply. Sure, do you mean in this discussion forum or somewhere else? Best, |
Beta Was this translation helpful? Give feedback.
-
Hi @hugtalbot |
Beta Was this translation helpful? Give feedback.
Hi @hugtalbot
I had tested it several times before starting this discussion, but later I realized that I was wrong and this component works fine. Sorry for this carelessness. Is it even possible to delete this discussion as it contains no useful information?