b311480e |
1 | -- Created on: 1992-11-17 |
2 | -- Created by: Remi LEQUETTE |
3 | -- Copyright (c) 1992-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 | |
23 | deferred generic class FaceExplorer from TopClass |
24 | (TheEdge as any) |
25 | |
26 | ---Purpose: Describe an exploration of a 2D face suitable for |
27 | -- classification. |
28 | |
29 | uses |
30 | Orientation from TopAbs, |
31 | Pnt2d from gp, |
32 | Lin2d from gp |
33 | |
34 | is |
35 | Reject(me; P : Pnt2d from gp) returns Boolean |
36 | ---Purpose: Should return True if the point is outside a |
37 | -- bounding volume of the face. |
38 | is deferred; |
39 | |
40 | Segment(me; P : Pnt2d from gp; |
41 | L : out Lin2d from gp; Par : out Real) |
42 | ---Purpose: Returns in <L>, <Par> a segment having at least |
43 | -- one intersection with the face boundary to |
44 | -- compute intersections. |
45 | is deferred; |
46 | |
47 | InitWires(me : in out) |
48 | ---Purpose: Starts an exploration of the wires. |
49 | is deferred; |
50 | |
51 | MoreWires(me) returns Boolean |
52 | ---Purpose: Returns True if there is a current wire. |
53 | ---C++: inline |
54 | is deferred; |
55 | |
56 | NextWire(me : in out) |
57 | ---Purpose: Sets the explorer to the next wire and returns |
58 | -- False if there are no more wires. |
59 | is deferred; |
60 | |
61 | RejectWire(me; L : Lin2d from gp; Par : Real) returns Boolean |
62 | ---Purpose: Returns True if the wire bounding volume does not |
63 | -- intersect the segment. |
64 | is deferred; |
65 | |
66 | InitEdges(me : in out) |
67 | ---Purpose: Starts an exploration of the edges of the current |
68 | -- wire. |
69 | is deferred; |
70 | |
71 | MoreEdges(me) returns Boolean |
72 | ---Purpose: Returns True if there is a current edge. |
73 | ---C++: inline |
74 | is deferred; |
75 | |
76 | NextEdge(me : in out) |
77 | ---Purpose: Sets the explorer to the next wire and returns |
78 | -- False if there are no more wires. |
79 | is deferred; |
80 | |
81 | RejectEdge(me; L : Lin2d from gp; Par : Real) returns Boolean |
82 | ---Purpose: Returns True if the edge bounding volume does not |
83 | -- intersect the segment. |
84 | is deferred; |
85 | |
86 | CurrentEdge(me; E : out TheEdge; Or : out Orientation from TopAbs) |
87 | ---Purpose: Curent edge in current wire and its orientation |
88 | is deferred; |
89 | |
90 | end FaceExplorer; |