Extruded mesh + csg union bug

Hey again xD !
Today I have an other question :smiley:
I continue with my ideas to make a powerfull imbrication system to draw complex components but today I was trying to merge 2 elements into one mesh and this happened. The red haired one is the thing we should get (without the red color on the top). I have been trying to use the mesh.mergeMeshes method but for the rest of the projet I need to keep csg (you can look at my other tickets to see why).


Thanks by advance

Adding @Evgeni_Popov who already looked into similar issues by the past :slight_smile:

1 Like

Your basket is not built correctly, it is built “inside out”: remove sideOrientation: BABYLON.Mesh.DOUBLESIDE to see that.

You should invert the order of the bezier points so that back/front faces are really back/front:

https://www.babylonjs-playground.com/#0XX50N#1

2 Likes

Thanks again xD !