Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BRepLib / BRepLib_MakeSolid.cdl
1 -- File:        BRepLib_MakeSolid.cdl
2 -- Created:     Wed Jan  4 11:12:48 1995
3 -- Author:      Bruno DUMORTIER
4 --              <dub@fuegox>
5 ---Copyright:    Matra Datavision 1995
6
7
8
9 class MakeSolid from BRepLib  inherits MakeShape from BRepLib
10
11         ---Purpose: Makes a solid from compsolid  or  shells.
12
13 uses
14     Solid             from TopoDS,
15     CompSolid         from TopoDS,
16     Shell             from TopoDS, 
17     Face              from TopoDS,
18     ListOfShape       from TopTools,
19     ShapeModification from BRepLib
20
21 raises
22     NotDone from StdFail
23     
24 is
25
26     Create
27         ---Level: Public
28         ---Purpose: Solid covers whole space.
29     returns MakeSolid from BRepLib;
30
31     ----------------------------------------------
32     -- From CompSolid
33     ----------------------------------------------
34
35     Create(S : CompSolid from TopoDS)
36         ---Purpose: Make a solid from a CompSolid.
37         ---Level: Public
38     returns MakeSolid from BRepLib;
39
40     
41
42     ----------------------------------------------
43     -- From shells
44     ----------------------------------------------
45
46     Create(S : Shell from TopoDS)
47         ---Purpose: Make a solid from a shell.
48         ---Level: Public
49     returns MakeSolid from BRepLib;
50
51     
52     Create(S1,S2 : Shell from TopoDS)
53         ---Purpose: Make a solid from two shells.
54         ---Level: Public
55     returns MakeSolid from BRepLib;
56     
57     Create(S1,S2,S3 : Shell from TopoDS)
58         ---Purpose: Make a solid from three shells.
59         ---Level: Public
60     returns MakeSolid from BRepLib;
61     
62
63     ----------------------------------------------
64     -- From solid and shells
65     ----------------------------------------------
66
67     Create(So : Solid from TopoDS)
68         ---Purpose: Make a solid from a solid. Usefull for adding later.
69         ---Level: Public
70     returns MakeSolid from BRepLib;
71     
72     Create(So : Solid from TopoDS; S : Shell from TopoDS)
73         ---Purpose: Add a shell to a solid.
74         ---Level: Public
75     returns MakeSolid from BRepLib;
76     
77         
78     ----------------------------------------------
79     -- Auxiliary methods
80     ----------------------------------------------
81
82     Add(me : in out; S : Shell from TopoDS)
83         ---Purpose: Add the shell to the current solid.
84         ---Level: Public
85     is static;
86     
87     ----------------------------------------------
88     -- Results
89     ----------------------------------------------
90
91     Solid(me) returns Solid from TopoDS
92         ---Purpose: Returns the new Solid.
93         --          
94         ---C++: return const &
95         ---C++: alias "Standard_EXPORT operator TopoDS_Solid() const;"
96         ---Level: Public
97     raises
98         NotDone from StdFail
99     is static;
100
101     FaceStatus(me; F: Face from TopoDS) 
102         ---Purpose: returns the status of the Face after
103         --          the shape creation. 
104         ---Level: Public
105     returns ShapeModification from BRepLib
106     is redefined;
107  
108 fields  
109
110     myDeletedFaces: ListOfShape   from TopTools is protected;
111
112 end MakeSolid;