7fd59977 |
1 | -- File: BRepIntCurveSurface_Inter.cdl |
2 | -- Created: Mon Feb 7 15:52:37 1994 |
3 | -- Author: Modelistation |
4 | -- <model@nonox> |
5 | ---Copyright: Matra Datavision 1994 |
6 | |
7 | |
8 | class Inter from BRepIntCurveSurface |
9 | |
10 | ---Purpose: Computes the intersection between a face and a curve |
11 | -- |
12 | |
13 | uses |
14 | --modified by NIZNHY-PKV Sun Dec 15 16:52:33 2002 f |
15 | TopolTool from BRepTopAdaptor, |
16 | HSurface from BRepAdaptor, |
17 | --modified by NIZNHY-PKV Sun Dec 15 16:52:34 2002 t |
18 | Shape from TopoDS, |
19 | FaceClassifier from BRepClass, |
20 | State from TopAbs, |
21 | Explorer from TopExp, |
22 | IntersectionPoint from IntCurveSurface, |
23 | HInter from IntCurveSurface, |
24 | Curve from GeomAdaptor, |
25 | Lin from gp, |
26 | Pnt from gp, |
27 | TransitionOnCurve from IntCurveSurface, |
28 | Face from TopoDS |
29 | |
30 | |
31 | raises |
32 | NotDone from StdFail |
33 | |
34 | |
35 | is |
36 | |
37 | Create returns Inter from BRepIntCurveSurface; |
38 | --- Purpose: Empty constructor; |
39 | |
40 | Init(me : in out; |
41 | Sh : Shape from TopoDS; |
42 | Cu : Curve from GeomAdaptor; |
43 | Tol: Real from Standard) |
44 | |
45 | --- Purpose: Load the Shape, the curve and initialize the |
46 | -- tolerance used for the classification. |
47 | is static; |
48 | |
49 | Init(me : in out; |
50 | Sh : Shape from TopoDS; |
51 | L : Lin from gp; |
52 | Tol: Real from Standard) |
53 | |
54 | --- Purpose: Load the Shape, the curve and initialize the |
55 | -- tolerance used for the classification. |
56 | is static; |
57 | |
58 | More(me) |
59 | |
60 | --- Purpose: returns True if there is a current face. |
61 | returns Boolean from Standard |
62 | is static; |
63 | |
64 | |
65 | Next(me: in out) |
66 | |
67 | --- Purpose: Sets the explorer to the next face. |
68 | is static; |
69 | |
70 | Find(me: in out) |
71 | ---Purpose: Internal function |
72 | is static protected; |
73 | |
74 | Point(me) |
75 | |
76 | ---Purpose: returns the current Intersection point. |
77 | |
78 | returns IntersectionPoint from IntCurveSurface |
79 | raises NotDone from StdFail |
80 | is static; |
81 | |
82 | Pnt(me) |
83 | ---Purpose: returns the current geometric Point |
84 | ---C++: return const & |
85 | returns Pnt from gp |
86 | raises NotDone from StdFail |
87 | is static; |
88 | |
89 | |
90 | U(me) |
91 | ---Purpose: returns the U parameter of the current point |
92 | -- on the current face. |
93 | returns Real from Standard |
94 | raises NotDone from StdFail |
95 | is static; |
96 | |
97 | V(me) |
98 | ---Purpose: returns the V parameter of the current point |
99 | -- on the current face. |
100 | returns Real from Standard |
101 | raises NotDone from StdFail |
102 | is static; |
103 | |
104 | W(me) |
105 | ---Purpose: returns the parameter of the current point |
106 | -- on the curve. |
107 | returns Real from Standard |
108 | raises NotDone from StdFail |
109 | is static; |
110 | |
111 | State(me) |
112 | |
113 | ---Purpose: returns the current state (IN or ON) |
114 | returns State from TopAbs |
115 | raises NotDone from StdFail |
116 | is static; |
117 | |
118 | Transition(me) |
119 | |
120 | ---Purpose: returns the transition of the line on the surface (IN or OUT or UNKNOWN) |
121 | returns TransitionOnCurve from IntCurveSurface |
122 | raises NotDone from StdFail |
123 | is static; |
124 | |
125 | Face(me) |
126 | |
127 | ---Purpose: returns the current face. |
128 | ---C++: return const & |
129 | returns Face from TopoDS |
130 | is static; |
131 | |
132 | |
133 | fields |
134 | |
135 | empty : Boolean from Standard; |
136 | curveisaline : Boolean from Standard; |
137 | tolerance : Real from Standard; |
138 | line : Lin from gp; |
139 | curve : Curve from GeomAdaptor; |
140 | |
141 | explorer : Explorer from TopExp; |
142 | classifier : FaceClassifier from BRepClass; |
143 | --intcs : ICSInter from BRepIntCurveSurface; |
144 | intcs : HInter from IntCurveSurface; |
145 | |
146 | currentindex : Integer from Standard; |
147 | currentnbpoints: Integer from Standard; |
148 | --modified by NIZNHY-PKV Sun Dec 15 16:51:34 2002 f |
149 | FastClass : TopolTool from BRepTopAdaptor; |
150 | SurfForFastClass: HSurface from BRepAdaptor; |
151 | currentstate : State from TopAbs; |
152 | currentU : Real from Standard; |
153 | currentV : Real from Standard; |
154 | --modified by NIZNHY-PKV Sun Dec 15 16:52:15 2002 t |
155 | end Inter from BRepIntCurveSurface; |