0024428: Implementation of LGPL license
[occt.git] / src / BRepLib / BRepLib_MakeSolid.cdl
CommitLineData
b311480e 1-- Created on: 1995-01-04
2-- Created by: Bruno DUMORTIER
3-- Copyright (c) 1995-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--
973c2be1 8-- This library is free software; you can redistribute it and / or modify it
9-- under the terms of the GNU Lesser General Public 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class MakeSolid from BRepLib inherits MakeShape from BRepLib
18
19 ---Purpose: Makes a solid from compsolid or shells.
20
21uses
22 Solid from TopoDS,
23 CompSolid from TopoDS,
24 Shell from TopoDS,
25 Face from TopoDS,
26 ListOfShape from TopTools,
27 ShapeModification from BRepLib
28
29raises
30 NotDone from StdFail
31
32is
33
34 Create
35 ---Level: Public
36 ---Purpose: Solid covers whole space.
37 returns MakeSolid from BRepLib;
38
39 ----------------------------------------------
40 -- From CompSolid
41 ----------------------------------------------
42
43 Create(S : CompSolid from TopoDS)
44 ---Purpose: Make a solid from a CompSolid.
45 ---Level: Public
46 returns MakeSolid from BRepLib;
47
48
49
50 ----------------------------------------------
51 -- From shells
52 ----------------------------------------------
53
54 Create(S : Shell from TopoDS)
55 ---Purpose: Make a solid from a shell.
56 ---Level: Public
57 returns MakeSolid from BRepLib;
58
59
60 Create(S1,S2 : Shell from TopoDS)
61 ---Purpose: Make a solid from two shells.
62 ---Level: Public
63 returns MakeSolid from BRepLib;
64
65 Create(S1,S2,S3 : Shell from TopoDS)
66 ---Purpose: Make a solid from three shells.
67 ---Level: Public
68 returns MakeSolid from BRepLib;
69
70
71 ----------------------------------------------
72 -- From solid and shells
73 ----------------------------------------------
74
75 Create(So : Solid from TopoDS)
76 ---Purpose: Make a solid from a solid. Usefull for adding later.
77 ---Level: Public
78 returns MakeSolid from BRepLib;
79
80 Create(So : Solid from TopoDS; S : Shell from TopoDS)
81 ---Purpose: Add a shell to a solid.
82 ---Level: Public
83 returns MakeSolid from BRepLib;
84
85
86 ----------------------------------------------
87 -- Auxiliary methods
88 ----------------------------------------------
89
90 Add(me : in out; S : Shell from TopoDS)
91 ---Purpose: Add the shell to the current solid.
92 ---Level: Public
93 is static;
94
95 ----------------------------------------------
96 -- Results
97 ----------------------------------------------
98
99 Solid(me) returns Solid from TopoDS
100 ---Purpose: Returns the new Solid.
101 --
102 ---C++: return const &
103 ---C++: alias "Standard_EXPORT operator TopoDS_Solid() const;"
104 ---Level: Public
105 raises
106 NotDone from StdFail
107 is static;
108
109 FaceStatus(me; F: Face from TopoDS)
110 ---Purpose: returns the status of the Face after
111 -- the shape creation.
112 ---Level: Public
113 returns ShapeModification from BRepLib
114 is redefined;
115
116fields
117
118 myDeletedFaces: ListOfShape from TopTools is protected;
119
120end MakeSolid;