@bitbybit-dev/occt
Version:
Bit By Bit Developers CAD algorithms using OpenCascade Technology kernel. Run in Node and in Browser.
30 lines (29 loc) • 997 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;
}
meshMeshIntersectionWires(inputs) {
return this.och.meshingService.meshMeshIntersectionWires(inputs);
}
meshMeshIntersectionPoints(inputs) {
return this.och.meshingService.meshMeshIntersectionPoints(inputs);
}
meshMeshIntersectionOfShapesWires(inputs) {
return this.och.meshingService.meshMeshIntersectionOfShapesWires(inputs);
}
meshMeshIntersectionOfShapesPoints(inputs) {
return this.och.meshingService.meshMeshIntersectionOfShapesPoints(inputs);
}
}