All your meshes/materials must use the same side orientation (and I’m not sure anything different from FRONTSIDE will work with CSG).
So, you should remove sideOrientation:BABYLON.Mesh.DOUBLESIDE from the polygon creation and make sure the vertices are listed with the right winding. It seems that inverting the creation of the vertices in pts and inverting the loop //base en bas make it work: