b311480e |
1 | -- Created on: 1994-01-25 |
2 | -- Created by: Jacques GOUSSARD |
3 | -- Copyright (c) 1994-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
04f7bd75 |
17 | class Extremity from BRepBlend |
7fd59977 |
18 | ---Purpose: |
19 | |
20 | uses Pnt from gp, |
21 | Vec from gp, |
04f7bd75 |
22 | Transition from IntSurf, |
23 | HVertex from Adaptor3d, |
24 | HCurve2d from Adaptor2d, |
25 | PointOnRst from BRepBlend, |
26 | SequenceOfPointOnRst from BRepBlend |
7fd59977 |
27 | |
28 | raises DomainError from Standard, |
29 | OutOfRange from Standard |
30 | |
31 | is |
32 | |
33 | Create |
34 | |
04f7bd75 |
35 | returns Extremity from BRepBlend; |
7fd59977 |
36 | |
37 | |
38 | Create(P: Pnt from gp; |
39 | U,V,Param: Real from Standard; Tol: Real from Standard) |
40 | ---Purpose: Creates an extremity on a surface |
04f7bd75 |
41 | returns Extremity from BRepBlend; |
7fd59977 |
42 | |
43 | |
44 | Create(P: Pnt from gp; |
45 | U,V,Param: Real from Standard; Tol: Real from Standard; |
04f7bd75 |
46 | Vtx: HVertex from Adaptor3d) |
7fd59977 |
47 | ---Purpose: Creates an extremity on a surface. This extremity matches |
48 | -- the vertex <Vtx>. |
49 | |
04f7bd75 |
50 | returns Extremity from BRepBlend; |
7fd59977 |
51 | |
52 | |
53 | Create(P: Pnt from gp; |
54 | W, Param: Real from Standard; Tol: Real from Standard) |
55 | ---Purpose: Creates an extremity on a curve |
04f7bd75 |
56 | returns Extremity from BRepBlend; |
7fd59977 |
57 | |
58 | |
59 | SetValue(me: in out; P: Pnt from gp; |
60 | U,V,Param : Real from Standard; |
61 | Tol: Real from Standard) |
62 | ---Purpose: Set the values for an extremity on a surface. |
63 | is static; |
64 | |
65 | |
66 | SetValue(me: in out; P: Pnt from gp; |
67 | U,V,Param: Real from Standard; |
04f7bd75 |
68 | Tol: Real from Standard; Vtx: HVertex from Adaptor3d) |
7fd59977 |
69 | ---Purpose: Set the values for an extremity on a surface.This |
70 | -- extremity matches the vertex <Vtx>. |
71 | is static; |
72 | |
73 | |
74 | SetValue(me: in out; P: Pnt from gp; |
75 | W,Param: Real from Standard; |
76 | Tol: Real from Standard) |
77 | ---Purpose: Set the values for an extremity on curve. |
78 | is static; |
79 | |
80 | |
81 | Value(me) |
82 | |
83 | ---Purpose: This method returns the value of the point in 3d space. |
84 | |
85 | returns Pnt from gp |
86 | ---C++: inline |
87 | ---C++: return const& |
88 | |
89 | is static; |
90 | |
91 | SetTangent(me: in out; Tangent : Vec from gp) |
92 | ---Purpose: Set the tangent vector for an extremity on a |
93 | -- surface. |
94 | ---C++: inline |
95 | is static; |
96 | |
97 | HasTangent(me) |
98 | |
99 | ---Purpose: Returns TRUE if the Tangent is stored. |
100 | |
101 | returns Boolean from Standard |
102 | ---C++: inline |
103 | |
104 | is static; |
105 | |
106 | Tangent(me) |
107 | |
108 | ---Purpose: This method returns the value of tangent in 3d |
109 | -- space. |
110 | |
111 | returns Vec from gp |
112 | ---C++: inline |
113 | ---C++: return const& |
114 | |
115 | is static; |
116 | |
117 | Tolerance(me) |
118 | |
119 | ---Purpose: This method returns the fuzziness on the point |
120 | -- in 3d space. |
121 | |
122 | returns Real from Standard |
123 | ---C++: inline |
124 | |
125 | is static; |
126 | |
127 | |
128 | |
129 | -- methods for an extremity on a surface |
130 | |
04f7bd75 |
131 | SetVertex(me: in out; V: HVertex from Adaptor3d) |
7fd59977 |
132 | ---Purpose: Set the values for an extremity on a curve. |
133 | is static; |
134 | |
135 | |
04f7bd75 |
136 | AddArc(me: in out; A: HCurve2d from Adaptor2d; Param: Real from Standard; |
7fd59977 |
137 | TLine, TArc: Transition from IntSurf) |
138 | |
139 | ---Purpose: Sets the values of a point which is on the arc |
140 | -- A, at parameter Param. |
141 | |
142 | |
143 | is static; |
144 | |
145 | |
146 | Parameters(me; U,V: out Real from Standard) |
147 | |
148 | ---Purpose: This method returns the parameters of the point |
149 | -- on the concerned surface. |
150 | |
151 | ---C++: inline |
152 | is static; |
153 | |
154 | |
155 | IsVertex(me) |
156 | |
157 | ---Purpose: Returns Standard_True when the point coincide with |
158 | -- an existing vertex. |
159 | |
160 | returns Boolean from Standard |
161 | ---C++: inline |
162 | |
163 | is static; |
164 | |
165 | |
166 | Vertex(me) |
167 | |
168 | ---Purpose: Returns the vertex when IsVertex returns Standard_True. |
169 | |
04f7bd75 |
170 | returns any HVertex from Adaptor3d |
7fd59977 |
171 | ---C++: inline |
172 | ---C++: return const& |
173 | |
174 | raises DomainError from Standard |
175 | --- The exception is raised when IsVertex returns Standard_False |
176 | is static; |
177 | |
178 | |
179 | NbPointOnRst(me) |
180 | |
181 | ---Purpose: Returns the number of arc containing the extremity. |
182 | -- If the method returns 0, the point is inside the |
183 | -- surface. |
184 | -- Otherwise, the extremity lies on at least 1 arc, |
185 | -- and all the information (arc, parameter, transitions) |
186 | -- are given by the point on restriction (PointOnRst) |
187 | -- returned by the next method. |
188 | |
189 | returns Integer from Standard |
190 | ---C++: inline |
191 | |
192 | is static; |
193 | |
194 | |
195 | PointOnRst(me; Index: Integer from Standard) |
196 | |
197 | ---Purpose: |
198 | |
04f7bd75 |
199 | returns any PointOnRst from BRepBlend |
7fd59977 |
200 | ---C++: inline |
201 | ---C++: return const& |
202 | |
203 | raises OutOfRange from Standard |
204 | --- The exception is raised when Index <=0 or Index > NbPointOnRst |
205 | is static; |
206 | |
207 | |
208 | -- method for an extremity on a curve |
209 | |
210 | Parameter(me) |
211 | |
212 | returns Real from Standard |
213 | ---C++: inline |
214 | is static; |
215 | |
216 | -- method for the parameter on the guide |
217 | ParameterOnGuide(me) |
218 | |
219 | returns Real from Standard |
220 | ---C++: inline |
221 | is static; |
222 | |
223 | fields |
04f7bd75 |
224 | vtx : HVertex from Adaptor3d; |
225 | seqpt : SequenceOfPointOnRst from BRepBlend; |
7fd59977 |
226 | pt : Pnt from gp; |
227 | tang : Vec from gp; |
228 | param : Real from Standard; |
229 | u : Real from Standard; |
230 | v : Real from Standard; |
231 | tol : Real from Standard; |
232 | isvtx : Boolean from Standard; |
233 | hastang: Boolean from Standard; |
234 | |
235 | end Extremity; |
236 | |
237 | |