b311480e |
1 | -- Created on: 1994-03-07 |
2 | -- Created by: Joelle CHAUVET |
3 | -- Copyright (c) 1994-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 | -- Modified: Thu Jul 2 16:47:35 1998 |
7fd59977 |
22 | -- add methods Generated and GeneratedShapes |
7fd59977 |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | class Generator from BRepFill |
29 | |
30 | ---Purpose: Compute a topological surface ( a shell) using |
31 | -- generating wires. The face of the shell will be |
32 | -- ruled surfaces passing by the wires. |
33 | -- The wires must have the same number of edges. |
34 | |
35 | |
36 | uses |
37 | |
38 | Wire from TopoDS, |
39 | Shell from TopoDS, |
40 | Shape from TopoDS, |
41 | SequenceOfShape from TopTools, |
42 | ListOfShape from TopTools, |
43 | DataMapOfShapeListOfShape from TopTools |
44 | |
45 | |
46 | is |
47 | |
48 | Create returns Generator from BRepFill; |
49 | |
50 | AddWire( me : in out; |
51 | Wire : in Wire from TopoDS) |
52 | is static; |
53 | |
54 | Perform( me : in out) |
55 | ---Purpose: Compute the shell. |
56 | is static; |
57 | |
58 | Shell(me) |
59 | ---C++: return const& |
60 | ---C++: inline |
61 | returns Shell from TopoDS |
62 | is static; |
63 | |
64 | Generated (me ) |
65 | ---Purpose: Returns all the shapes created |
66 | ---C++ : return const & |
67 | returns DataMapOfShapeListOfShape from TopTools |
68 | is static; |
69 | |
70 | GeneratedShapes (me ; |
71 | SSection : Shape from TopoDS) |
72 | ---Purpose: Returns the shapes created from a subshape |
73 | -- <SSection> of a section. |
74 | -- |
75 | ---C++ : return const & |
76 | returns ListOfShape from TopTools |
77 | is static; |
78 | |
79 | |
80 | |
81 | |
82 | fields |
83 | myWires : SequenceOfShape from TopTools; |
84 | myShell : Shell from TopoDS; |
85 | myMap : DataMapOfShapeListOfShape from TopTools; |
86 | |
87 | end Generator; |
88 | |
89 | |
90 | |
91 | |