0024624: Lost word in license statement in source files
[occt.git] / src / BRepSweep / BRepSweep_Builder.cxx
CommitLineData
b311480e 1// Created on: 1993-02-04
2// Created by: Laurent BOURESCHE
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
17#include <BRepSweep_Builder.ixx>
18#include <TopoDS.hxx>
19
20//=======================================================================
21//function : BRepSweep_Builder
22//purpose :
23//=======================================================================
24
25BRepSweep_Builder::BRepSweep_Builder(const BRep_Builder& aBuilder) :
26 myBuilder(aBuilder)
27{
28}
29
30//=======================================================================
31//function : MakeCompound
32//purpose :
33//=======================================================================
34
35void BRepSweep_Builder::MakeCompound(TopoDS_Shape& aCompound)const
36{
37 myBuilder.MakeCompound(TopoDS::Compound(aCompound));
38}
39
40
41//=======================================================================
42//function : MakeCompSolid
43//purpose :
44//=======================================================================
45
46void BRepSweep_Builder::MakeCompSolid(TopoDS_Shape& aCompSolid)const
47{
48 myBuilder.MakeCompSolid(TopoDS::CompSolid(aCompSolid));
49}
50
51
52//=======================================================================
53//function : MakeSolid
54//purpose :
55//=======================================================================
56
57void BRepSweep_Builder::MakeSolid(TopoDS_Shape& aSolid)const
58{
59 myBuilder.MakeSolid(TopoDS::Solid(aSolid));
60}
61
62
63//=======================================================================
64//function : MakeShell
65//purpose :
66//=======================================================================
67
68void BRepSweep_Builder::MakeShell(TopoDS_Shape& aShell)const
69{
70 myBuilder.MakeShell(TopoDS::Shell(aShell));
71}
72
73
74//=======================================================================
75//function : MakeWire
76//purpose :
77//=======================================================================
78
79void BRepSweep_Builder::MakeWire(TopoDS_Shape& aWire)const
80{
81 myBuilder.MakeWire(TopoDS::Wire(aWire));
82}
83
84
85//=======================================================================
86//function : Add
87//purpose :
88//=======================================================================
89
90void BRepSweep_Builder::Add(TopoDS_Shape& aShape1,
91 const TopoDS_Shape& aShape2,
92 const TopAbs_Orientation Orient)const
93{
94 TopoDS_Shape aComp = aShape2;
95 aComp.Orientation(Orient);
96 myBuilder.Add(aShape1,aComp);
97}
98
99
100//=======================================================================
101//function : Add
102//purpose :
103//=======================================================================
104
105void BRepSweep_Builder::Add(TopoDS_Shape& aShape1,
106 const TopoDS_Shape& aShape2)const
107{
108 myBuilder.Add(aShape1,aShape2);
109}
110
111