setBooleanChildOperation
Last updated
// Subtract Sphere from the base object
await api.setBooleanChildOperation("Boolean 1", "Sphere", "Subtract");
// Keep only the overlapping volume with Tube
await api.setBooleanChildOperation("Boolean 1", "Tube", "Intersection");
// Combine Box into the base object
await api.setBooleanChildOperation("Boolean 1", "Box", "Union");
// Read back the result (returns uppercase internal value)
const op = await api.getBooleanChildOperation("Boolean 1", "Sphere");
console.log(op); // "A_MINUS_B"