Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 10x 3x 3x | import { OpenCascadeInstance, TopoDS_Face, TopoDS_Shell } from "../../../bitbybit-dev-occt/bitbybit-dev-occt";
import { OccHelper } from "../../occ-helper";
import * as Inputs from "../../api/inputs/inputs";
export class OCCTShell {
constructor(
private readonly occ: OpenCascadeInstance,
private readonly och: OccHelper
) {
}
sewFaces(inputs: Inputs.OCCT.SewDto<TopoDS_Face>): TopoDS_Shell {
return this.och.shellsService.sewFaces(inputs);
}
isClosed(inputs: Inputs.OCCT.ShapeDto<TopoDS_Shell>): boolean {
return this.occ.BRep_Tool.IsClosed_1(inputs.shape);
}
getShellSurfaceArea(inputs: Inputs.OCCT.ShapeDto<TopoDS_Shell>): number {
return this.och.shellsService.getShellSurfaceArea(inputs);
}
}
|