Work Name: 【something】

Source Code


const mesh01J2TZ392XQMR64VKV5HYZF70K = BABYLON.MeshBuilder.CreateBox('01J2TZ392XQMR64VKV5HYZF70K', {}, scene);
mesh01J2TZ392XQMR64VKV5HYZF70K.position = new BABYLON.Vector3(
  2.5448459148407,
  5.991686630249022,
  4.674406337738033,
);
mesh01J2TZ392XQMR64VKV5HYZF70K.rotationQuaternion = new BABYLON.Quaternion(
  0.14869216510973104,
  -0.06427328619538542,
  -0.04933866744288656,
  0.9855583555744306,
);
mesh01J2TZ392XQMR64VKV5HYZF70K.scaling = new BABYLON.Vector3(
  4.999999869205016,
  5.000000053538239,
  4.999999686907412,
);

const mesh01J2TZ3TCZVP151C076QJKWW6F = BABYLON.MeshBuilder.CreateSphere('01J2TZ3TCZVP151C076QJKWW6F', { segments: 3 }, scene);
mesh01J2TZ3TCZVP151C076QJKWW6F.position = new BABYLON.Vector3(
  2.8527519702911377,
  2.4436349868774414,
  4.018408298492432,
);
mesh01J2TZ3TCZVP151C076QJKWW6F.rotationQuaternion = new BABYLON.Quaternion(
  -0.13991947263306231,
  0.1580168537734824,
  -0.04161978513620264,
  0.9765864026005432,
);
mesh01J2TZ3TCZVP151C076QJKWW6F.scaling = new BABYLON.Vector3(
  4.999999849340214,
  5.00000002309322,
  4.999999889005539,
);

const subCSG = BABYLON.CSG.FromMesh(mesh01J2TZ392XQMR64VKV5HYZF70K);
subCSG['intersectInPlace'](BABYLON.CSG.FromMesh(mesh01J2TZ3TCZVP151C076QJKWW6F));
subCSG.toMesh("csg", undefined, scene, true);

mesh01J2TZ392XQMR64VKV5HYZF70K.dispose();
mesh01J2TZ3TCZVP151C076QJKWW6F.dispose();