b311480e |
1 | -- Created on: 1994-01-25 |
2 | -- Created by: Jacques GOUSSARD |
3 | -- Copyright (c) 1994-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 | |
24 | generic class Extremity from Blend |
25 | (TheVertex as any; |
26 | TheArc as any; |
27 | ThePointOnRst as any; -- as PointOnRst from Blend(TheArc) |
28 | TheSequenceOfPointOnRst as any) -- as Iterator from Blend(ThePointOnRst) |
29 | |
30 | |
31 | |
32 | ---Purpose: |
33 | |
34 | uses Pnt from gp, |
35 | Vec from gp, |
36 | Transition from IntSurf |
37 | |
38 | |
39 | raises DomainError from Standard, |
40 | OutOfRange from Standard |
41 | |
42 | is |
43 | |
44 | Create |
45 | |
46 | returns Extremity from Blend; |
47 | |
48 | |
49 | Create(P: Pnt from gp; |
50 | U,V,Param: Real from Standard; Tol: Real from Standard) |
51 | ---Purpose: Creates an extremity on a surface |
52 | returns Extremity from Blend; |
53 | |
54 | |
55 | Create(P: Pnt from gp; |
56 | U,V,Param: Real from Standard; Tol: Real from Standard; |
57 | Vtx: TheVertex) |
58 | ---Purpose: Creates an extremity on a surface. This extremity matches |
59 | -- the vertex <Vtx>. |
60 | |
61 | returns Extremity from Blend; |
62 | |
63 | |
64 | Create(P: Pnt from gp; |
65 | W, Param: Real from Standard; Tol: Real from Standard) |
66 | ---Purpose: Creates an extremity on a curve |
67 | returns Extremity from Blend; |
68 | |
69 | |
70 | SetValue(me: in out; P: Pnt from gp; |
71 | U,V,Param : Real from Standard; |
72 | Tol: Real from Standard) |
73 | ---Purpose: Set the values for an extremity on a surface. |
74 | is static; |
75 | |
76 | |
77 | SetValue(me: in out; P: Pnt from gp; |
78 | U,V,Param: Real from Standard; |
79 | Tol: Real from Standard; Vtx: TheVertex) |
80 | ---Purpose: Set the values for an extremity on a surface.This |
81 | -- extremity matches the vertex <Vtx>. |
82 | is static; |
83 | |
84 | |
85 | SetValue(me: in out; P: Pnt from gp; |
86 | W,Param: Real from Standard; |
87 | Tol: Real from Standard) |
88 | ---Purpose: Set the values for an extremity on curve. |
89 | is static; |
90 | |
91 | |
92 | Value(me) |
93 | |
94 | ---Purpose: This method returns the value of the point in 3d space. |
95 | |
96 | returns Pnt from gp |
97 | ---C++: inline |
98 | ---C++: return const& |
99 | |
100 | is static; |
101 | |
102 | SetTangent(me: in out; Tangent : Vec from gp) |
103 | ---Purpose: Set the tangent vector for an extremity on a |
104 | -- surface. |
105 | ---C++: inline |
106 | is static; |
107 | |
108 | HasTangent(me) |
109 | |
110 | ---Purpose: Returns TRUE if the Tangent is stored. |
111 | |
112 | returns Boolean from Standard |
113 | ---C++: inline |
114 | |
115 | is static; |
116 | |
117 | Tangent(me) |
118 | |
119 | ---Purpose: This method returns the value of tangent in 3d |
120 | -- space. |
121 | |
122 | returns Vec from gp |
123 | ---C++: inline |
124 | ---C++: return const& |
125 | |
126 | is static; |
127 | |
128 | Tolerance(me) |
129 | |
130 | ---Purpose: This method returns the fuzziness on the point |
131 | -- in 3d space. |
132 | |
133 | returns Real from Standard |
134 | ---C++: inline |
135 | |
136 | is static; |
137 | |
138 | |
139 | |
140 | -- methods for an extremity on a surface |
141 | |
142 | SetVertex(me: in out; V: TheVertex) |
143 | ---Purpose: Set the values for an extremity on a curve. |
144 | is static; |
145 | |
146 | |
147 | AddArc(me: in out; A: TheArc; Param: Real from Standard; |
148 | TLine, TArc: Transition from IntSurf) |
149 | |
150 | ---Purpose: Sets the values of a point which is on the arc |
151 | -- A, at parameter Param. |
152 | |
153 | |
154 | is static; |
155 | |
156 | |
157 | Parameters(me; U,V: out Real from Standard) |
158 | |
159 | ---Purpose: This method returns the parameters of the point |
160 | -- on the concerned surface. |
161 | |
162 | ---C++: inline |
163 | is static; |
164 | |
165 | |
166 | IsVertex(me) |
167 | |
168 | ---Purpose: Returns Standard_True when the point coincide with |
169 | -- an existing vertex. |
170 | |
171 | returns Boolean from Standard |
172 | ---C++: inline |
173 | |
174 | is static; |
175 | |
176 | |
177 | Vertex(me) |
178 | |
179 | ---Purpose: Returns the vertex when IsVertex returns Standard_True. |
180 | |
181 | returns any TheVertex |
182 | ---C++: inline |
183 | ---C++: return const& |
184 | |
185 | raises DomainError from Standard |
186 | --- The exception is raised when IsVertex returns Standard_False |
187 | is static; |
188 | |
189 | |
190 | NbPointOnRst(me) |
191 | |
192 | ---Purpose: Returns the number of arc containing the extremity. |
193 | -- If the method returns 0, the point is inside the |
194 | -- surface. |
195 | -- Otherwise, the extremity lies on at least 1 arc, |
196 | -- and all the information (arc, parameter, transitions) |
197 | -- are given by the point on restriction (PointOnRst) |
198 | -- returned by the next method. |
199 | |
200 | returns Integer from Standard |
201 | ---C++: inline |
202 | |
203 | is static; |
204 | |
205 | |
206 | PointOnRst(me; Index: Integer from Standard) |
207 | |
208 | ---Purpose: |
209 | |
210 | returns any ThePointOnRst |
211 | ---C++: inline |
212 | ---C++: return const& |
213 | |
214 | raises OutOfRange from Standard |
215 | --- The exception is raised when Index <=0 or Index > NbPointOnRst |
216 | is static; |
217 | |
218 | |
219 | -- method for an extremity on a curve |
220 | |
221 | Parameter(me) |
222 | |
223 | returns Real from Standard |
224 | ---C++: inline |
225 | is static; |
226 | |
227 | -- method for the parameter on the guide |
228 | ParameterOnGuide(me) |
229 | |
230 | returns Real from Standard |
231 | ---C++: inline |
232 | is static; |
233 | |
234 | fields |
235 | vtx : TheVertex; |
236 | seqpt : TheSequenceOfPointOnRst; |
237 | pt : Pnt from gp; |
238 | tang : Vec from gp; |
239 | param : Real from Standard; |
240 | u : Real from Standard; |
241 | v : Real from Standard; |
242 | tol : Real from Standard; |
243 | isvtx : Boolean from Standard; |
244 | hastang: Boolean from Standard; |
245 | |
246 | end Extremity; |
247 | |
248 | |