973c2be1 |
1 | ---Copyright: Open CASCADE 2014 |
2 | -- Created on: 2012-06-09 |
3 | -- Created by: jgv@ROLEX |
4 | -- Copyright (c) 2012-2014 OPEN CASCADE SAS |
5 | -- |
6 | -- This file is part of Open CASCADE Technology software library. |
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. |
13 | -- |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
2277323d |
16 | |
17 | class UnifySameDomain from ShapeUpgrade inherits TShared from MMgt |
18 | |
19 | ---Purpose: Unifies same domain faces and edges of specified shape |
20 | |
21 | uses |
22 | Shape from TopoDS, |
23 | ListOfShape from TopTools, |
24 | ReShape from ShapeBuild |
25 | |
26 | is |
27 | Create returns UnifySameDomain from ShapeUpgrade; |
28 | ---Purpose: empty constructor |
29 | |
30 | Create(aShape: Shape from TopoDS; |
31 | UnifyEdges: Boolean from Standard = Standard_True; |
32 | UnifyFaces: Boolean from Standard = Standard_True; |
33 | ConcatBSplines: Boolean from Standard = Standard_False) |
34 | returns UnifySameDomain from ShapeUpgrade; |
35 | |
36 | Initialize(me: mutable; aShape: Shape from TopoDS; |
37 | UnifyEdges: Boolean from Standard = Standard_True; |
38 | UnifyFaces: Boolean from Standard = Standard_True; |
39 | ConcatBSplines: Boolean from Standard = Standard_False); |
40 | |
41 | Build( me : mutable ); |
42 | ---Purpose: Builds the resulting shape |
43 | |
44 | Shape(me) returns Shape from TopoDS; |
45 | ---C++: return const & |
46 | ---Purpose: Gives the resulting shape |
47 | |
48 | Generated (me; aShape : Shape from TopoDS) |
49 | returns Shape from TopoDS; |
50 | |
51 | UnifyFaces(me: mutable); |
52 | ---Purpose: this method makes if possible a common face from each |
53 | -- group of faces lying on coincident surfaces |
54 | |
55 | UnifyEdges(me: mutable); |
56 | ---Purpose: this method makes if possible a common edge from each |
57 | -- group of edges connecting common couple of faces |
58 | |
59 | UnifyFacesAndEdges(me: mutable); |
60 | ---Purpose: this method unifies same domain faces and edges |
61 | |
62 | fields |
63 | |
64 | myInitShape : Shape from TopoDS; |
65 | myUnifyFaces : Boolean from Standard; |
66 | myUnifyEdges : Boolean from Standard; |
67 | myConcatBSplines : Boolean from Standard; |
68 | |
69 | myShape : Shape from TopoDS; |
70 | |
71 | myContext : ReShape from ShapeBuild; |
72 | --myOldNewMap : DataMapOfShapeShape from TopTools; |
73 | |
74 | end UnifySameDomain; |