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