0025614: Provide API access to the new fuctionalities of Boolean Components
[occt.git] / src / BRepAlgoAPI / BRepAlgoAPI_Cut.cxx
CommitLineData
b311480e 1// Created on: 1993-10-15
2// Created by: Remi LEQUETTE
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
7fd59977 17#include <BRepAlgoAPI_Cut.ixx>
18
19#include <BRepAlgoAPI_BooleanOperation.hxx>
7fd59977 20
21//=======================================================================
22//function : BRepAlgoAPI_Cut
23//purpose :
24//=======================================================================
b1d15f53 25BRepAlgoAPI_Cut::BRepAlgoAPI_Cut()
26:
27 BRepAlgoAPI_BooleanOperation()
28{
29 myOperation=BOPAlgo_CUT;
30}
31//=======================================================================
49b0c452 32//function : BRepAlgoAPI_Cut
33//purpose :
34//=======================================================================
35BRepAlgoAPI_Cut::BRepAlgoAPI_Cut(const BOPAlgo_PaveFiller& aPF)
36:
37 BRepAlgoAPI_BooleanOperation(aPF)
38{
39 myOperation=BOPAlgo_CUT;
40}
41//=======================================================================
b1d15f53 42//function : ~BRepAlgoAPI_Cut
43//purpose :
44//=======================================================================
45BRepAlgoAPI_Cut::~BRepAlgoAPI_Cut()
46{
47}
b1d15f53 48//=======================================================================
49//function : BRepAlgoAPI_Cut
50//purpose :
51//=======================================================================
52BRepAlgoAPI_Cut::BRepAlgoAPI_Cut(const TopoDS_Shape& S1,
53 const TopoDS_Shape& S2)
54:
55 BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_CUT)
7fd59977 56{
57 BRepAlgoAPI_BooleanOperation* pBO=
58 (BRepAlgoAPI_BooleanOperation*) (void*) this;
59 pBO->Build();
60}
61//=======================================================================
62//function : BRepAlgoAPI_Cut
63//purpose :
64//=======================================================================
b1d15f53 65BRepAlgoAPI_Cut::BRepAlgoAPI_Cut(const TopoDS_Shape& S1,
66 const TopoDS_Shape& S2,
67 const BOPAlgo_PaveFiller& aDSF,
68 const Standard_Boolean bFWD)
69:
49b0c452 70 BRepAlgoAPI_BooleanOperation(S1, S2, aDSF,
71 (bFWD) ? BOPAlgo_CUT : BOPAlgo_CUT21)
7fd59977 72{
73 BRepAlgoAPI_BooleanOperation* pBO=
74 (BRepAlgoAPI_BooleanOperation*) (void*) this;
75 pBO->Build();
76}