From b674d14424bb8dc70e8265e6ad4f2c17fdc6cf57 Mon Sep 17 00:00:00 2001 From: Vizua Date: Sun, 21 Apr 2024 00:20:49 +0200 Subject: [PATCH] test substract --- toto.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/toto.html b/toto.html index 134bdc5..51fad2b 100644 --- a/toto.html +++ b/toto.html @@ -87,15 +87,15 @@ }); - //let busteCSG = BABYLON.CSG.FromMesh(buste); - //let planeCSG = BABYLON.CSG.FromMesh(plane); + let busteCSG = BABYLON.CSG.FromMesh(buste[0]); + let planeCSG = BABYLON.CSG.FromMesh(plane); - //let booleanCSG = busteCSG.subtract(planeCSG); + let booleanCSG = busteCSG.subtract(planeCSG); - //let newMesh = booleanCSG.toMesh("newMesh", null, scene); + let newMesh = booleanCSG.toMesh("newMesh", null, scene); - // buste.visibility = false; - // plane.visibility = false; + buste.visibility = false; + plane.visibility = false; // Move the light with the camera scene.registerBeforeRender(function () {