b311480e |
1 | -- Created on: 1995-12-21 |
2 | -- Created by: Jean Yves LEBEY |
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 | class SolidBuilder from TopOpeBRepBuild |
23 | |
24 | uses |
25 | |
26 | Shape from TopoDS, |
27 | |
28 | ShapeSet from TopOpeBRepBuild, |
29 | LoopSet from TopOpeBRepBuild, |
30 | BlockIterator from TopOpeBRepBuild, |
31 | BlockBuilder from TopOpeBRepBuild, |
32 | |
33 | ShellFaceSet from TopOpeBRepBuild, |
34 | SolidAreaBuilder from TopOpeBRepBuild |
35 | |
36 | is |
37 | |
38 | Create returns SolidBuilder; |
39 | |
40 | Create(FS : in out ShellFaceSet; ForceClass : Boolean = Standard_False) |
41 | returns SolidBuilder; |
42 | ---Purpose: Create a SolidBuilder to build the areas on |
43 | -- the shapes (shells, blocks of faces) described by <LS>. |
44 | |
45 | InitSolidBuilder(me : in out; |
46 | FS : in out ShellFaceSet; |
47 | ForceClass : Boolean) is static; |
48 | |
49 | -- Output methods |
50 | InitSolid(me : in out) returns Integer from Standard; |
51 | MoreSolid(me) returns Boolean from Standard is static; |
52 | NextSolid(me : in out) is static; |
53 | |
54 | -- Exploration of the wires of the current Solid |
55 | InitShell(me : in out) returns Integer from Standard; |
56 | MoreShell(me) returns Boolean from Standard is static; |
57 | NextShell(me : in out) is static; |
58 | IsOldShell(me) returns Boolean from Standard is static; |
59 | OldShell(me) returns Shape from TopoDS is static; |
60 | ---Purpose: Returns current shell |
61 | -- This shell may be : |
62 | -- * an old shell OldShell(), which has not been reconstructed; |
63 | -- * a new shell made of faces described by ...NewFace() methods. |
64 | ---C++: return const & |
65 | |
66 | -- Exploration of the faces of current shell when IsOldShell = False |
67 | InitFace(me : in out) returns Integer from Standard; |
68 | MoreFace(me) returns Boolean from Standard is static; |
69 | NextFace(me : in out) is static; |
70 | Face(me) returns Shape from TopoDS is static; |
71 | ---Purpose: Returns current new face of current new shell. |
72 | ---C++: return const & |
73 | |
74 | --- private |
75 | MakeLoops(me : in out; SS : in out ShapeSet from TopOpeBRepBuild) |
76 | is static private; |
77 | |
78 | fields |
79 | |
80 | myLoopSet : LoopSet from TopOpeBRepBuild; |
81 | myBlockIterator : BlockIterator from TopOpeBRepBuild; |
82 | myBlockBuilder : BlockBuilder from TopOpeBRepBuild; |
83 | |
84 | mySolidAreaBuilder : SolidAreaBuilder from TopOpeBRepBuild; |
85 | |
86 | end SolidBuilder; |