Hi all, i have 2 meshes on my scene, and i want merge both and export to stl, but i got this error : babylon.js:16 BJS - [11:35:20]: Cannot merge meshes because resulting mesh will have more than 65536 vertices. Please use allow32BitsIndices = true to use 32 bits indices
I don´t if i´m doing the right way but i use this function:
const meshMerged = Mesh.MergeMeshes([(this.scene.meshes[0] as Mesh), (this.scene.meshes[1] as Mesh)]);
I appreciate your help ! Thanks a lot !!!
Hey, as stated in the message, simply call MergeMeshes with allow32BitsIndices set to true (false by default):
Babylon.js/mesh.ts at 751ef99e08f79cd2dffb021851788595ccf513b7 · BabylonJS/Babylon.js (github.com)