1 -- Created on: 1995-10-20
2 -- Created by: Yves FRICAUD
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 class Analyse from BRepOffset
25 ---Purpose: Analyse of a shape consit to
26 -- Find the part of edges convex concave tangent.
35 IndexedDataMapOfShapeListOfShape from TopTools,
36 ListOfShape from TopTools,
37 MapOfShape from TopTools,
38 Interval from BRepOffset,
39 ListOfInterval from BRepOffset,
40 DataMapOfShapeListOfInterval from BRepOffset,
46 Create (S : Shape from TopoDS ;
47 Angle : Real from Standard)
48 returns Analyse from BRepOffset;
50 Perform (me : in out ;
51 S : Shape from TopoDS ;
52 Angle : Real from Standard)
56 returns Boolean from Standard
62 Type (me; E : Edge from TopoDS)
64 returns ListOfInterval from BRepOffset
68 V : Vertex from TopoDS;
69 T : Type from BRepOffset;
70 L : in out ListOfShape from TopTools)
71 ---Purpose: Stores in <L> all the edges of Type <T>
77 T : Type from BRepOffset;
78 L : in out ListOfShape from TopTools)
79 ---Purpose: Stores in <L> all the edges of Type <T>
84 Edge : Edge from TopoDS;
85 Vertex : Vertex from TopoDS;
86 Edges : in out ListOfShape from TopTools)
87 ---Purpose: set in <Edges> all the Edges of <Shape> which are
88 -- tangent to <Edge> at the vertex <Vertex>.
91 HasAncestor (me ; S : Shape from TopoDS)
92 returns Boolean from Standard
95 Ancestors (me ; S : Shape from TopoDS)
96 ---C++: return const &
97 returns ListOfShape from TopTools
101 L : in out ListOfShape from TopTools;
102 Type : in Type from BRepOffset)
103 ---Purpose: Explode in compounds of faces where
104 -- all the connex edges are of type <Side>
108 L : in out ListOfShape from TopTools;
109 Type1 : in Type from BRepOffset;
110 Type2 : in Type from BRepOffset)
111 ---Purpose: Explode in compounds of faces where
112 -- all the connex edges are of type <Side1> or <Side2>
116 Face : Face from TopoDS;
117 Co : in out Compound from TopoDS;
118 Map : in out MapOfShape from TopTools;
119 Type : in Type from BRepOffset)
120 ---Purpose: Add in <CO> the faces of the shell containing <Face>
121 -- where all the connex edges are of type <Side>.
125 Face : Face from TopoDS;
126 Co : in out Compound from TopoDS;
127 Map : in out MapOfShape from TopTools;
128 Type1 : in Type from BRepOffset;
129 Type2 : in Type from BRepOffset)
130 ---Purpose: Add in <CO> the faces of the shell containing <Face>
131 -- where all the connex edges are of type <Side1> or <Side2>.
137 myDone : Boolean from Standard;
138 myShape : Shape from TopoDS;
139 mapEdgeType : DataMapOfShapeListOfInterval from BRepOffset;
140 ancestors : IndexedDataMapOfShapeListOfShape from TopTools;
141 angle : Real from Standard;