Hello there!
Found this
The first one is a merged mesh with 10 material
After CSG subtract
CSG.toMesh(
CSG.fromMesh(mergedMesh).subtract(CSG.fromMesh(sphere)),
mergedMesh.matrix,
materialArray
)
Any solution based on merge mesh will be great !