Skip to content

Commit

Permalink
test substract
Browse files Browse the repository at this point in the history
  • Loading branch information
Vizua committed Apr 20, 2024
1 parent dadc768 commit b674d14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions toto.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit b674d14

Please sign in to comment.