MergeMeshes cannot merge imported meshes and MeshBuilder meshes (Mesh)

Hello!

In this example, there is an imported mesh (consisting of 7 meshes) and two meshes created by MeshBuilder.

If you try to MergeMeshes all 9 meshes, null will be returned. This is not correct behavior.

This is not a bug but a limitation of the process.

You can actually see in the console log:

Basically the face orientation being different are preventing the process to be possible.

2 Likes

Understood. Thanks, I missed that

no problem, it is not always the most obvious. you could try in right handed mode as in this case I belive both loaded gltf and created elements will have the same handedness.

1 Like