@bitbybit-dev/occt
Version:
Bit By Bit Developers CAD algorithms using OpenCascade Technology kernel. Run in Node and in Browser.
18 lines (17 loc) • 481 B
JavaScript
export class OCCTBooleans {
constructor(occ, och) {
this.occ = occ;
this.och = och;
}
union(inputs) {
return this.och.booleansService.union(inputs);
}
difference(inputs) {
return this.och.booleansService.difference(inputs);
}
intersection(inputs) {
const int = this.och.booleansService.intersection(inputs);
const res = this.och.converterService.makeCompound({ shapes: int });
return res;
}
}