Work Name: 【test】

Source Code


const mesh01J2VZ2TZG8Q2QQ1WDZ8VR2BNQ = BABYLON.MeshBuilder.CreateTorus('01J2VZ2TZG8Q2QQ1WDZ8VR2BNQ', {}, scene);
mesh01J2VZ2TZG8Q2QQ1WDZ8VR2BNQ.position = new BABYLON.Vector3(
  3.5477583408355713,
  4.232154369354248,
  -3.860574960708618,
);
mesh01J2VZ2TZG8Q2QQ1WDZ8VR2BNQ.rotationQuaternion = new BABYLON.Quaternion(
  0.1085321074289284,
  0.03567250111497682,
  0.9220582104979311,
  0.36980658562901575,
);
mesh01J2VZ2TZG8Q2QQ1WDZ8VR2BNQ.scaling = new BABYLON.Vector3(
  6.811070032241286,
  1.844616122590107,
  6.58208120672517,
);

const mesh01J2VZ3XSYNH26NMW35PQ1DFPQ = BABYLON.MeshBuilder.CreateBox('01J2VZ3XSYNH26NMW35PQ1DFPQ', {}, scene);
mesh01J2VZ3XSYNH26NMW35PQ1DFPQ.position = new BABYLON.Vector3(
  0.4195362499449411,
  5.420777066051962,
  -2.999252576660368,
);
mesh01J2VZ3XSYNH26NMW35PQ1DFPQ.rotationQuaternion = new BABYLON.Quaternion(
  0.08445922452379684,
  -0.035467268775606776,
  -0.05228849422283177,
  0.9944217585714725,
);
mesh01J2VZ3XSYNH26NMW35PQ1DFPQ.scaling = new BABYLON.Vector3(
  4.999999967254174,
  4.999999827128603,
  5.000000082476589,
);

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

mesh01J2VZ2TZG8Q2QQ1WDZ8VR2BNQ.dispose();
mesh01J2VZ3XSYNH26NMW35PQ1DFPQ.dispose();