1 -- Created on: 1993-06-03
2 -- Created by: Jacques GOUSSARD
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and / or modify it
9 -- under the terms of the GNU Lesser General Public version 2.1 as published
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 generic class SurfFunction from Contap
19 TheSurfaceTool as any;
20 TheSurfProps as any; -- as SurfProps from Contap(TheSurface,
24 inherits FunctionSetWithDerivatives from math
26 ---Purpose: This class describes the function on a parametric surface.
27 -- the form of the function is F(u,v) = 0 where u and v are
28 -- the parameteric coordinates of a point on the surface,
29 -- to compute the contours of the surface.
31 uses Vector from math,
40 raises UndefinedDerivative from StdFail
46 returns SurfFunction from Contap;
49 Set(me: in out; S: TheSurface)
54 Set(me: in out; Eye: Pnt from gp)
60 Set(me: in out; Dir: Dir from gp)
66 Set(me: in out; Dir: Dir from gp; Angle: Real from Standard)
72 Set(me: in out; Eye: Pnt from gp; Angle: Real from Standard)
78 Set(me: in out; Tolerance: Real from Standard)
86 ---Purpose: This method has to return 2.
87 returns Integer from Standard;
92 ---Purpose: This method has to return 1.
93 returns Integer from Standard;
96 Value(me : in out; X : Vector from math;
97 F : out Vector from math)
99 ---Purpose: The dimension of F is 1.
101 returns Boolean from Standard;
104 Derivatives(me : in out; X : Vector from math;
105 D : out Matrix from math)
107 ---Purpose: The dimension of D is (1,2).
109 returns Boolean from Standard;
112 Values(me : in out; X : Vector from math;
113 F : out Vector from math;
114 D : out Matrix from math)
116 returns Boolean from Standard;
121 ---Purpose: Root is the value of the function at the solution.
122 -- It is a vector of dimension 1, i-e a real.
124 returns Real from Standard
131 ---Purpose: Returns the value Tol so that if Abs(Func.Root())<Tol
132 -- the function is considered null.
136 returns Real from Standard
142 ---Purpose: Returns the value of the solution point on the surface.
145 ---C++: return const&
150 IsTangent(me : in out)
152 returns Boolean from Standard
156 Direction3d(me: in out)
159 ---C++: return const&
161 raises UndefinedDerivative from StdFail
165 Direction2d(me: in out)
167 returns Dir2d from gp
168 ---C++: return const&
170 raises UndefinedDerivative from StdFail
176 returns TFunction from Contap
184 ---C++: return const&
192 ---C++: return const&
199 returns Real from Standard
206 returns any TheSurface
207 ---C++: return const&
216 myMean : Real from Standard;
217 myType : TFunction from Contap;
220 myAng : Real from Standard;
221 myCosAng : Real from Standard;
222 tol : Real from Standard;
225 valf : Real from Standard;
226 Usol : Real from Standard;
227 Vsol : Real from Standard;
228 Fpu : Real from Standard;
229 Fpv : Real from Standard;
233 tangent : Boolean from Standard;
234 computed : Boolean from Standard;
235 derived : Boolean from Standard;