0023252: Fillet regression
[occt.git] / src / TopOpeBRepBuild / TopOpeBRepBuild_WireEdgeClassifier.cdl
CommitLineData
b311480e 1-- Created on: 1993-06-17
2-- Created by: Jean Yves LEBEY
3-- Copyright (c) 1993-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
22class WireEdgeClassifier from TopOpeBRepBuild
23 inherits CompositeClassifier from TopOpeBRepBuild
24
25---Purpose:
26-- Classify edges and wires.
27-- shapes are Wires, Element are Edge.
28
29uses
30
31 ShapeEnum from TopAbs,
32 State from TopAbs,
33 Shape from TopoDS,
34 Pnt2d from gp,
35 Edge from BRepClass,
36 FacePassiveClassifier from BRepClass,
37 BlockBuilder from TopOpeBRepBuild,
38 Loop from TopOpeBRepBuild
39
40is
41
42 Create(F : Shape from TopoDS;
43 BB : BlockBuilder) returns WireEdgeClassifier;
44 ---Purpose: Creates a classifier on edge <F>.
45 -- Used to compare edges and wires on the edge <F>.
46
47 Compare(me : in out; L1,L2 : Loop) returns State from TopAbs
48 is redefined;
49
50 LoopToShape(me : in out; L : Loop)
51 returns Shape from TopoDS;
52
53 CompareShapes(me : in out; B1,B2 : Shape from TopoDS)
54 ---Purpose: classify wire <B1> with wire <B2>
55 returns State from TopAbs;
56
57 CompareElementToShape(me : in out; E,B : Shape from TopoDS)
58 ---Purpose: classify edge <E> with wire <B>
59 returns State from TopAbs;
60
61 ResetShape(me : in out; B : Shape from TopoDS);
62 ---Purpose: prepare classification involving wire <B>
63 -- calls ResetElement on first edge of <B>
64
65 ResetElement(me : in out; E : Shape from TopoDS);
66 ---Purpose: prepare classification involving edge <E>
67 -- define 2D point (later used in Compare()) on first vertex of edge <E>.
68
73a97e76 69 CompareElement(me : in out; E : Shape from TopoDS)
70 returns Boolean from Standard;
7fd59977 71 ---Purpose: Add the edge <E> in the set of edges used in 2D point
72 -- classification.
73
74 State(me : in out) returns State from TopAbs;
75 ---Purpose: Returns state of classification of 2D point, defined by
76 -- ResetElement, with the current set of edges, defined by Compare.
77
78fields
79
80 myFirstCompare : Boolean;
81 myPoint2d : Pnt2d from gp;
82 myBCEdge : Edge from BRepClass;
83 myFPC : FacePassiveClassifier from BRepClass;
84 myShape : Shape from TopoDS;
85
86end WireEdgeClassifier from TopOpeBRepBuild;