Work Name: 【hydrogen】

Source Code


const mesh01J1HK6VENAMVWMZ9Y35X0HQBC = BABYLON.MeshBuilder.CreateSphere('01J1HK6VENAMVWMZ9Y35X0HQBC', { segments: 3 }, scene);
mesh01J1HK6VENAMVWMZ9Y35X0HQBC.position = new BABYLON.Vector3(
  -1.5742081407457598,
  -0.4414191050105728,
  0.5484962396323682,
);
mesh01J1HK6VENAMVWMZ9Y35X0HQBC.rotationQuaternion = new BABYLON.Quaternion(
  0.007606040481765636,
  -0.03194809851172832,
  -0.003881474784430403,
  0.9994530159773799,
);
mesh01J1HK6VENAMVWMZ9Y35X0HQBC.scaling = new BABYLON.Vector3(
  5,
  5,
  5,
);

const mesh01J1HK71P39Y6KZ8PDKHZM6E8Z = BABYLON.MeshBuilder.CreateSphere('01J1HK71P39Y6KZ8PDKHZM6E8Z', { segments: 3 }, scene);
mesh01J1HK71P39Y6KZ8PDKHZM6E8Z.position = new BABYLON.Vector3(
  1.2248923277482402,
  0.3703129563014955,
  -0.5023146629333494,
);
mesh01J1HK71P39Y6KZ8PDKHZM6E8Z.rotationQuaternion = new BABYLON.Quaternion(
  -0.005723206900143279,
  0.024690589815229796,
  0.004246234542479022,
  0.999669738045303,
);
mesh01J1HK71P39Y6KZ8PDKHZM6E8Z.scaling = new BABYLON.Vector3(
  5,
  5,
  5,
);

const subCSG = BABYLON.CSG.FromMesh(mesh01J1HK6VENAMVWMZ9Y35X0HQBC);
subCSG['unionInPlace'](BABYLON.CSG.FromMesh(mesh01J1HK71P39Y6KZ8PDKHZM6E8Z));
subCSG.toMesh("csg", undefined, scene, true);

mesh01J1HK6VENAMVWMZ9Y35X0HQBC.dispose();
mesh01J1HK71P39Y6KZ8PDKHZM6E8Z.dispose();