b311480e |
1 | -- Created on: 1995-01-04 |
2 | -- Created by: Bruno DUMORTIER |
3 | -- Copyright (c) 1995-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 | |
24 | class MakeSolid from BRepLib inherits MakeShape from BRepLib |
25 | |
26 | ---Purpose: Makes a solid from compsolid or shells. |
27 | |
28 | uses |
29 | Solid from TopoDS, |
30 | CompSolid from TopoDS, |
31 | Shell from TopoDS, |
32 | Face from TopoDS, |
33 | ListOfShape from TopTools, |
34 | ShapeModification from BRepLib |
35 | |
36 | raises |
37 | NotDone from StdFail |
38 | |
39 | is |
40 | |
41 | Create |
42 | ---Level: Public |
43 | ---Purpose: Solid covers whole space. |
44 | returns MakeSolid from BRepLib; |
45 | |
46 | ---------------------------------------------- |
47 | -- From CompSolid |
48 | ---------------------------------------------- |
49 | |
50 | Create(S : CompSolid from TopoDS) |
51 | ---Purpose: Make a solid from a CompSolid. |
52 | ---Level: Public |
53 | returns MakeSolid from BRepLib; |
54 | |
55 | |
56 | |
57 | ---------------------------------------------- |
58 | -- From shells |
59 | ---------------------------------------------- |
60 | |
61 | Create(S : Shell from TopoDS) |
62 | ---Purpose: Make a solid from a shell. |
63 | ---Level: Public |
64 | returns MakeSolid from BRepLib; |
65 | |
66 | |
67 | Create(S1,S2 : Shell from TopoDS) |
68 | ---Purpose: Make a solid from two shells. |
69 | ---Level: Public |
70 | returns MakeSolid from BRepLib; |
71 | |
72 | Create(S1,S2,S3 : Shell from TopoDS) |
73 | ---Purpose: Make a solid from three shells. |
74 | ---Level: Public |
75 | returns MakeSolid from BRepLib; |
76 | |
77 | |
78 | ---------------------------------------------- |
79 | -- From solid and shells |
80 | ---------------------------------------------- |
81 | |
82 | Create(So : Solid from TopoDS) |
83 | ---Purpose: Make a solid from a solid. Usefull for adding later. |
84 | ---Level: Public |
85 | returns MakeSolid from BRepLib; |
86 | |
87 | Create(So : Solid from TopoDS; S : Shell from TopoDS) |
88 | ---Purpose: Add a shell to a solid. |
89 | ---Level: Public |
90 | returns MakeSolid from BRepLib; |
91 | |
92 | |
93 | ---------------------------------------------- |
94 | -- Auxiliary methods |
95 | ---------------------------------------------- |
96 | |
97 | Add(me : in out; S : Shell from TopoDS) |
98 | ---Purpose: Add the shell to the current solid. |
99 | ---Level: Public |
100 | is static; |
101 | |
102 | ---------------------------------------------- |
103 | -- Results |
104 | ---------------------------------------------- |
105 | |
106 | Solid(me) returns Solid from TopoDS |
107 | ---Purpose: Returns the new Solid. |
108 | -- |
109 | ---C++: return const & |
110 | ---C++: alias "Standard_EXPORT operator TopoDS_Solid() const;" |
111 | ---Level: Public |
112 | raises |
113 | NotDone from StdFail |
114 | is static; |
115 | |
116 | FaceStatus(me; F: Face from TopoDS) |
117 | ---Purpose: returns the status of the Face after |
118 | -- the shape creation. |
119 | ---Level: Public |
120 | returns ShapeModification from BRepLib |
121 | is redefined; |
122 | |
123 | fields |
124 | |
125 | myDeletedFaces: ListOfShape from TopTools is protected; |
126 | |
127 | end MakeSolid; |