@bitbybit-dev/occt
Version:
Bit By Bit Developers CAD algorithms using OpenCascade Technology kernel. Run in Node and in Browser.
109 lines (108 loc) • 3.8 kB
JavaScript
export class OCCTOperations {
constructor(occ, och) {
this.occ = occ;
this.och = och;
}
closestPointsBetweenTwoShapes(inputs) {
return this.och.operationsService.closestPointsBetweenTwoShapes(inputs.shape1, inputs.shape2);
}
closestPointsOnShapeFromPoints(inputs) {
return this.och.operationsService.closestPointsOnShapeFromPoints(inputs);
}
closestPointsOnShapesFromPoints(inputs) {
return this.och.operationsService.closestPointsOnShapesFromPoints(inputs);
}
distancesToShapeFromPoints(inputs) {
return this.och.operationsService.distancesToShapeFromPoints(inputs);
}
boundingBoxOfShape(inputs) {
return this.och.operationsService.boundingBoxOfShape(inputs);
}
boundingBoxMinOfShape(inputs) {
const bbox = this.och.operationsService.boundingBoxOfShape(inputs);
return bbox.min;
}
boundingBoxMaxOfShape(inputs) {
const bbox = this.och.operationsService.boundingBoxOfShape(inputs);
return bbox.max;
}
boundingBoxCenterOfShape(inputs) {
const bbox = this.och.operationsService.boundingBoxOfShape(inputs);
return bbox.center;
}
boundingBoxSizeOfShape(inputs) {
const bbox = this.och.operationsService.boundingBoxOfShape(inputs);
return bbox.size;
}
boundingBoxShapeOfShape(inputs) {
return this.och.operationsService.boundingBoxShapeOfShape(inputs);
}
boundingSphereOfShape(inputs) {
return this.och.operationsService.boundingSphereOfShape(inputs);
}
boundingSphereCenterOfShape(inputs) {
const sphere = this.och.operationsService.boundingSphereOfShape(inputs);
return sphere.center;
}
boundingSphereRadiusOfShape(inputs) {
const sphere = this.och.operationsService.boundingSphereOfShape(inputs);
return sphere.radius;
}
boundingSphereShapeOfShape(inputs) {
return this.och.operationsService.boundingSphereShapeOfShape(inputs);
}
loft(inputs) {
return this.och.operationsService.loft(inputs);
}
loftAdvanced(inputs) {
return this.och.operationsService.loftAdvanced(inputs);
}
offset(inputs) {
return this.och.operationsService.offset(inputs);
}
offsetAdv(inputs) {
return this.och.operationsService.offsetAdv(inputs);
}
offset3DWire(inputs) {
return this.och.operationsService.offset3DWire(inputs);
}
extrudeShapes(inputs) {
return this.och.operationsService.extrudeShapes(inputs);
}
extrude(inputs) {
return this.och.operationsService.extrude(inputs);
}
splitShapeWithShapes(inputs) {
return this.och.operationsService.splitShapeWithShapes(inputs);
}
revolve(inputs) {
return this.och.operationsService.revolve(inputs);
}
rotatedExtrude(inputs) {
return this.och.operationsService.rotatedExtrude(inputs);
}
pipe(inputs) {
return this.och.operationsService.pipe(inputs);
}
pipePolylineWireNGon(inputs) {
return this.och.operationsService.pipePolylineWireNGon(inputs);
}
pipeWireCylindrical(inputs) {
return this.och.operationsService.pipeWireCylindrical(inputs);
}
pipeWiresCylindrical(inputs) {
return this.och.operationsService.pipeWiresCylindrical(inputs);
}
makeThickSolidSimple(inputs) {
return this.och.operationsService.makeThickSolidSimple(inputs);
}
makeThickSolidByJoin(inputs) {
return this.och.operationsService.makeThickSolidByJoin(inputs);
}
slice(inputs) {
return this.och.operationsService.slice(inputs);
}
sliceInStepPattern(inputs) {
return this.och.operationsService.sliceInStepPattern(inputs);
}
}