Work Name: 【Triple donuts】

Source Code


const mesh01J2BENMNJWPGXNXS84N5RH1JG = BABYLON.MeshBuilder.CreateTorus('01J2BENMNJWPGXNXS84N5RH1JG', {}, scene);
mesh01J2BENMNJWPGXNXS84N5RH1JG.position = new BABYLON.Vector3(
  3.169772291183473,
  0.5030698189511895,
  2.9744644641876232,
);
mesh01J2BENMNJWPGXNXS84N5RH1JG.rotationQuaternion = new BABYLON.Quaternion(
  0.039744145079427556,
  0.7100024367772982,
  -0.005293126207068558,
  0.7030566425017357,
);
mesh01J2BENMNJWPGXNXS84N5RH1JG.scaling = new BABYLON.Vector3(
  5.002242771673613,
  5.000000592219886,
  4.999999050332502,
);

const mesh01J2BEP9H3CZ9S1S9CNQYKV3Q7 = BABYLON.MeshBuilder.CreateTorus('01J2BEP9H3CZ9S1S9CNQYKV3Q7', {}, scene);
mesh01J2BEP9H3CZ9S1S9CNQYKV3Q7.position = new BABYLON.Vector3(
  -1.080985426902771,
  0.5288267731666565,
  0.33261317014694214,
);
mesh01J2BEP9H3CZ9S1S9CNQYKV3Q7.rotationQuaternion = new BABYLON.Quaternion(
  0.009075885076724353,
  -0.2223059092028002,
  -0.024172272157382633,
  0.9746350149170406,
);
mesh01J2BEP9H3CZ9S1S9CNQYKV3Q7.scaling = new BABYLON.Vector3(
  5.0000002672939905,
  5.000000044025148,
  4.999999092361451,
);

const mesh01J2BEQ3617HJ9NCZQKSE9F0JG = BABYLON.MeshBuilder.CreateTorus('01J2BEQ3617HJ9NCZQKSE9F0JG', {}, scene);
mesh01J2BEQ3617HJ9NCZQKSE9F0JG.position = new BABYLON.Vector3(
  2.679125595092773,
  0.3649420255795123,
  -2.2824462413787843,
);
mesh01J2BEQ3617HJ9NCZQKSE9F0JG.rotationQuaternion = new BABYLON.Quaternion(
  0.014970328363209925,
  -0.19933956719583162,
  0.018506616621535774,
  0.9796411490610029,
);
mesh01J2BEQ3617HJ9NCZQKSE9F0JG.scaling = new BABYLON.Vector3(
  5.008586378646625,
  4.904071982672831,
  4.904071208096783,
);

const subCSG = BABYLON.CSG.FromMesh(mesh01J2BENMNJWPGXNXS84N5RH1JG);
subCSG['subtractInPlace'](BABYLON.CSG.FromMesh(mesh01J2BEP9H3CZ9S1S9CNQYKV3Q7));
subCSG['subtractInPlace'](BABYLON.CSG.FromMesh(mesh01J2BEQ3617HJ9NCZQKSE9F0JG));
subCSG.toMesh("csg", undefined, scene, true);

mesh01J2BENMNJWPGXNXS84N5RH1JG.dispose();
mesh01J2BEP9H3CZ9S1S9CNQYKV3Q7.dispose();
mesh01J2BEQ3617HJ9NCZQKSE9F0JG.dispose();