Work Name: 【Key】

Source Code


const mesh01J1HZYED4KWM2ZS415B0GG1CP = BABYLON.MeshBuilder.CreateBox('01J1HZYED4KWM2ZS415B0GG1CP', {}, scene);
mesh01J1HZYED4KWM2ZS415B0GG1CP.position = new BABYLON.Vector3(
  -0.19282488524913788,
  -0.35079848766326904,
  -0.1264592707157135,
);
mesh01J1HZYED4KWM2ZS415B0GG1CP.rotationQuaternion = new BABYLON.Quaternion(
  0.005700949857483796,
  -0.0018061150131751136,
  -0.003682639401145261,
  0.999975337339038,
);
mesh01J1HZYED4KWM2ZS415B0GG1CP.scaling = new BABYLON.Vector3(
  6.887180800620604,
  5.000000001928996,
  3.474545566163414,
);

const mesh01J1HZYPX5FS3Z9CB7YKPHR568 = BABYLON.MeshBuilder.CreateTorus('01J1HZYPX5FS3Z9CB7YKPHR568', {}, scene);
mesh01J1HZYPX5FS3Z9CB7YKPHR568.position = new BABYLON.Vector3(
  0.17145136178005493,
  2.6115838654339334,
  0.06682527102516359,
);
mesh01J1HZYPX5FS3Z9CB7YKPHR568.rotationQuaternion = new BABYLON.Quaternion(
  -0.7069571109780667,
  -0.029622835175626198,
  0.030949865835590305,
  0.705957500205572,
);
mesh01J1HZYPX5FS3Z9CB7YKPHR568.scaling = new BABYLON.Vector3(
  5,
  5.000000466858565,
  5.000000466858565,
);

const mesh01J1J003TW0N7QKJ8RMK1C6E7V = BABYLON.MeshBuilder.CreateBox('01J1J003TW0N7QKJ8RMK1C6E7V', {}, scene);
mesh01J1J003TW0N7QKJ8RMK1C6E7V.position = new BABYLON.Vector3(
  0.4416199028491974,
  -0.13056311011314392,
  -4.170674800872803,
);
mesh01J1J003TW0N7QKJ8RMK1C6E7V.rotationQuaternion = new BABYLON.Quaternion(
  0.004277006461411259,
  -0.014302202406746253,
  -0.0030265081108629653,
  0.9998839905062489,
);
mesh01J1J003TW0N7QKJ8RMK1C6E7V.scaling = new BABYLON.Vector3(
  0.34905961809725605,
  1.5650673907090522,
  7.3483325774886215,
);

const subCSG = BABYLON.CSG.FromMesh(mesh01J1HZYED4KWM2ZS415B0GG1CP);
subCSG['unionInPlace'](BABYLON.CSG.FromMesh(mesh01J1HZYPX5FS3Z9CB7YKPHR568));
subCSG['subtractInPlace'](BABYLON.CSG.FromMesh(mesh01J1J003TW0N7QKJ8RMK1C6E7V));
subCSG.toMesh("csg", undefined, scene, true);

mesh01J1HZYED4KWM2ZS415B0GG1CP.dispose();
mesh01J1HZYPX5FS3Z9CB7YKPHR568.dispose();
mesh01J1J003TW0N7QKJ8RMK1C6E7V.dispose();