@bitbybit-dev/occt-worker
Version:
Bit By Bit Developers CAD algorithms using OpenCascade Technology kernel adapted for WebWorker
28 lines (27 loc) • 879 B
JavaScript
export class OCCTCompound {
constructor(occWorkerManager) {
this.occWorkerManager = occWorkerManager;
}
/**
* Makes the compound shape, which can include any kind of shapes
* @param inputs OpenCascade shapes
* @returns OpenCascade compounded shape
* @group create
* @shortname make
* @drawable true
*/
makeCompound(inputs) {
return this.occWorkerManager.genericCallToWorkerPromise("shapes.compound.makeCompound", inputs);
}
/**
* Gets the shapes that compound is made of
* @param inputs OpenCascade shapes
* @returns OpenCascade compounded shape
* @group get
* @shortname get shapes of compound
* @drawable true
*/
getShapesOfCompound(inputs) {
return this.occWorkerManager.genericCallToWorkerPromise("shapes.compound.getShapesOfCompound", inputs);
}
}