Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Nov 13, 2023
1 parent 262a979 commit 87f8683
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packages/jupytercad-extension/src/worker/occapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ function _Cut(arg: ICut, content: IJCadContent): TopoDS_Shape | undefined {
if (base && tool) {
baseObject[0].visible = false;
toolObject[0].visible = false;
const operator = new oc.BRepAlgoAPI_Cut_3(base.occShape, tool.occShape, new oc.Message_ProgressRange());
const operator = new oc.BRepAlgoAPI_Cut_3(
base.occShape,
tool.occShape,
new oc.Message_ProgressRange()
);
if (operator.IsDone()) {
return setShapePlacement(operator.Shape(), Placement);
}
Expand Down Expand Up @@ -168,7 +172,11 @@ function _Fuse(arg: IFuse, content: IJCadContent): TopoDS_Shape | undefined {
}
}
});
const operator = new oc.BRepAlgoAPI_Fuse_3(occShapes[0], occShapes[1], new oc.Message_ProgressRange());
const operator = new oc.BRepAlgoAPI_Fuse_3(
occShapes[0],
occShapes[1],
new oc.Message_ProgressRange()
);
if (operator.IsDone()) {
return setShapePlacement(operator.Shape(), Placement);
}
Expand Down Expand Up @@ -199,7 +207,11 @@ function _Intersection(
}
}
});
const operator = new oc.BRepAlgoAPI_Common_3(occShapes[0], occShapes[1], new oc.Message_ProgressRange());
const operator = new oc.BRepAlgoAPI_Common_3(
occShapes[0],
occShapes[1],
new oc.Message_ProgressRange()
);
if (operator.IsDone()) {
return setShapePlacement(operator.Shape(), Placement);
}
Expand Down

0 comments on commit 87f8683

Please sign in to comment.