0024624: Lost word in license statement in source files
[occt.git] / src / BRepBuilderAPI / BRepBuilderAPI_MakeShape.cxx
1 // Created on: 1993-07-23
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <BRepBuilderAPI_MakeShape.ixx>
18 #include <TopoDS.hxx>
19 #include <TopoDS_Shape.hxx>
20 #include <TopoDS_Face.hxx>
21 #include <TopoDS_Edge.hxx>
22 #include <TopoDS_Vertex.hxx>
23
24
25 //=======================================================================
26 //function : BRepBuilderAPI_MakeShape
27 //purpose  : 
28 //=======================================================================
29
30 BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape()
31 {
32 }
33
34 void BRepBuilderAPI_MakeShape::Delete()
35 {}
36
37
38 //=======================================================================
39 //function : Build
40 //purpose  : 
41 //=======================================================================
42
43 void BRepBuilderAPI_MakeShape::Build()
44 {
45 }
46
47 //=======================================================================
48 //function : Shape
49 //purpose  : 
50 //=======================================================================
51
52 const TopoDS_Shape&  BRepBuilderAPI_MakeShape::Shape() const
53 {
54   if (!IsDone()) {
55     // the following is const cast away
56     ((BRepBuilderAPI_MakeShape*) (void*) this)->Build();
57     Check();
58   }
59   return myShape;
60 }
61
62
63 //=======================================================================
64 //function : operator
65 //purpose  : 
66 //=======================================================================
67
68 BRepBuilderAPI_MakeShape::operator TopoDS_Shape() const
69 {
70   return Shape();
71 }
72
73
74 //=======================================================================
75 //function : Generated
76 //purpose  : 
77 //=======================================================================
78
79 const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Generated (const TopoDS_Shape&) 
80
81 {
82   myGenerated.Clear();
83   return myGenerated;
84 }
85
86
87 //=======================================================================
88 //function : Modified
89 //purpose  : 
90 //=======================================================================
91
92 const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Modified (const TopoDS_Shape&) 
93
94 {
95   myGenerated.Clear();
96   return myGenerated;
97 }
98
99
100 //=======================================================================
101 //function : IsDeleted
102 //purpose  : 
103 //=======================================================================
104
105 Standard_Boolean BRepBuilderAPI_MakeShape::IsDeleted (const TopoDS_Shape&) 
106
107 {
108   return Standard_False;
109 }
110
111
112
113