7fd59977 |
1 | // File: BRepAlgoAPI_Cut.cxx |
2 | // Created: Fri Oct 15 11:37:00 1993 |
3 | // Author: Remi LEQUETTE |
4 | // <rle@phylox> |
5 | |
6 | |
7 | #include <BRepAlgoAPI_Cut.ixx> |
8 | |
9 | #include <BRepAlgoAPI_BooleanOperation.hxx> |
10 | #include <BOP_Operation.hxx> |
11 | |
12 | //======================================================================= |
13 | //function : BRepAlgoAPI_Cut |
14 | //purpose : |
15 | //======================================================================= |
16 | BRepAlgoAPI_Cut::BRepAlgoAPI_Cut(const TopoDS_Shape& S1, |
17 | const TopoDS_Shape& S2) |
18 | : BRepAlgoAPI_BooleanOperation(S1, S2, BOP_CUT) |
19 | { |
20 | BRepAlgoAPI_BooleanOperation* pBO= |
21 | (BRepAlgoAPI_BooleanOperation*) (void*) this; |
22 | pBO->Build(); |
23 | } |
24 | //======================================================================= |
25 | //function : BRepAlgoAPI_Cut |
26 | //purpose : |
27 | //======================================================================= |
28 | BRepAlgoAPI_Cut::BRepAlgoAPI_Cut(const TopoDS_Shape& S1, |
29 | const TopoDS_Shape& S2, |
30 | const BOPTools_DSFiller& aDSF, |
31 | const Standard_Boolean bFWD) |
32 | : BRepAlgoAPI_BooleanOperation(S1, S2, aDSF, (bFWD) ? BOP_CUT : BOP_CUT21) |
33 | { |
34 | BRepAlgoAPI_BooleanOperation* pBO= |
35 | (BRepAlgoAPI_BooleanOperation*) (void*) this; |
36 | pBO->Build(); |
37 | } |