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 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
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 | |
17 | class MakeShell from BRepLib inherits MakeShape from BRepLib |
18 | |
19 | ---Purpose: Provides methos to build shells. |
20 | -- |
21 | -- Build a shell from a set of faces. |
22 | -- Build untied shell from a non C2 surface |
23 | -- splitting it into C2-continuous parts. |
24 | |
25 | uses |
26 | |
27 | Surface from Geom, |
28 | Shell from TopoDS, |
29 | Face from TopoDS, |
30 | ShellError from BRepLib |
31 | |
32 | |
33 | raises |
34 | NotDone from StdFail |
35 | |
36 | is |
37 | Create |
38 | ---Purpose: Not done. |
39 | ---Level: Public |
40 | returns MakeShell from BRepLib; |
41 | |
42 | ---------------------------------------------- |
43 | -- From a set of face |
44 | ---------------------------------------------- |
45 | |
46 | ---------------------------------------------- |
47 | -- From a surface |
48 | ---------------------------------------------- |
49 | |
50 | Create(S : Surface from Geom; |
51 | Segment : Boolean from Standard = Standard_False) |
52 | ---Level: Public |
53 | returns MakeShell from BRepLib; |
54 | |
55 | Create(S : Surface from Geom; UMin, UMax, VMin, VMax : Real; |
56 | Segment : Boolean from Standard = Standard_False) |
57 | ---Level: Public |
58 | returns MakeShell from BRepLib; |
59 | |
60 | Init(me : in out; S : Surface from Geom; UMin, UMax, VMin, VMax : Real; |
61 | Segment : Boolean from Standard = Standard_False) |
62 | ---Purpose: Creates the shell from the surface and the min-max |
63 | -- values. |
64 | ---Level: Public |
65 | is static; |
66 | |
67 | |
68 | ---------------------------------------------- |
69 | -- Results |
70 | ---------------------------------------------- |
71 | |
72 | Error(me) returns ShellError from BRepLib |
73 | ---Level: Public |
74 | is static; |
75 | |
76 | Shell(me) returns Shell from TopoDS |
77 | ---Purpose: Returns the new Shell. |
78 | -- |
79 | ---C++: return const & |
80 | ---C++: alias "Standard_EXPORT operator TopoDS_Shell() const;" |
81 | ---Level: Public |
82 | raises |
83 | NotDone from StdFail |
84 | is static; |
85 | |
86 | fields |
87 | myError : ShellError from BRepLib; |
88 | |
89 | end MakeShell; |