0024075: Boolean Section between two faces fails
[occt.git] / src / BRepBuilderAPI / BRepBuilderAPI_MakeShape.cxx
CommitLineData
b311480e 1// Created on: 1993-07-23
2// Created by: Remi LEQUETTE
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23#include <BRepBuilderAPI_MakeShape.ixx>
24#include <TopoDS.hxx>
25#include <TopoDS_Shape.hxx>
26#include <TopoDS_Face.hxx>
27#include <TopoDS_Edge.hxx>
28#include <TopoDS_Vertex.hxx>
29
30
31//=======================================================================
32//function : BRepBuilderAPI_MakeShape
33//purpose :
34//=======================================================================
35
36BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape()
37{
38}
39
40void BRepBuilderAPI_MakeShape::Delete()
41{}
42
43
44//=======================================================================
45//function : Build
46//purpose :
47//=======================================================================
48
49void BRepBuilderAPI_MakeShape::Build()
50{
51}
52
53//=======================================================================
54//function : Shape
55//purpose :
56//=======================================================================
57
58const TopoDS_Shape& BRepBuilderAPI_MakeShape::Shape() const
59{
60 if (!IsDone()) {
61 // the following is const cast away
62 ((BRepBuilderAPI_MakeShape*) (void*) this)->Build();
63 Check();
64 }
65 return myShape;
66}
67
68
69//=======================================================================
70//function : operator
71//purpose :
72//=======================================================================
73
74BRepBuilderAPI_MakeShape::operator TopoDS_Shape() const
75{
76 return Shape();
77}
78
79
80//=======================================================================
81//function : Generated
82//purpose :
83//=======================================================================
84
85const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Generated (const TopoDS_Shape& S)
86
87{
88 myGenerated.Clear();
89 return myGenerated;
90}
91
92
93//=======================================================================
94//function : Modified
95//purpose :
96//=======================================================================
97
98const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Modified (const TopoDS_Shape& S)
99
100{
101 myGenerated.Clear();
102 return myGenerated;
103}
104
105
106//=======================================================================
107//function : IsDeleted
108//purpose :
109//=======================================================================
110
111Standard_Boolean BRepBuilderAPI_MakeShape::IsDeleted (const TopoDS_Shape& S)
112
113{
114 return Standard_False;
115}
116
117
118
119