1 -- Created on: 1992-03-27
2 -- Created by: Isabelle GRIGNON
3 -- Copyright (c) 1992-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 under
9 -- the terms of the GNU Lesser General Public License 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 ZerImpFunc from IntImp
19 ThePSurfaceTool as any;
21 TheISurfaceTool as any)
24 inherits FunctionSetWithDerivatives from math
26 ---Purpose: this function is associated to IWalking
27 -- it's the function : F(x,y,z)=0
28 -- where x=X(u,v), y=Y(u,v), z=Z(u,v)
30 uses Vector from math,
36 raises UndefinedDerivative from StdFail
42 returns ZerImpFunc from IntImp;
45 Create(PS: ThePSurface;
48 returns ZerImpFunc from IntImp;
51 Create(IS: TheISurface)
53 returns ZerImpFunc from IntImp;
56 Set(me: in out; PS: ThePSurface)
62 SetImplicitSurface(me: in out; IS: TheISurface)
68 Set(me: in out; Tolerance: Real from Standard)
76 returns Integer from Standard
83 returns Integer from Standard
88 Value(me : in out; X : Vector from math;
89 F : out Vector from math)
91 returns Boolean from Standard
95 Derivatives(me : in out; X : Vector from math;
96 D : out Matrix from math)
98 returns Boolean from Standard
102 Values(me : in out; X : Vector from math;
103 F : out Vector from math;
104 D : out Matrix from math)
106 returns Boolean from Standard
112 returns Real from Standard
120 ---Purpose: Returns the value Tol so that if Abs(Func.Root())<Tol
121 -- the function is considered null.
125 returns Real from Standard
132 ---C++: return const&
138 IsTangent(me : in out)
140 returns Boolean from Standard
145 Direction3d(me: in out)
148 ---C++: return const&
151 raises UndefinedDerivative from StdFail
155 Direction2d(me: in out)
157 returns Dir2d from gp
158 ---C++: return const&
161 raises UndefinedDerivative from StdFail
168 ---C++: return const&
177 ---C++: return const&
186 surf : Address from Standard; --- ThePSurface;
187 func : Address from Standard; --- TheISurface;
188 u : Real from Standard;
189 v : Real from Standard;
190 tol : Real from Standard;
191 pntsol : Pnt from gp;
192 valf : Real from Standard;
193 computed : Boolean from Standard;
194 tangent : Boolean from Standard;
195 tgdu : Real from Standard;
196 tgdv : Real from Standard;
197 gradient : Vec from gp;
198 derived : Boolean from Standard;