1 -- File: Adaptor3d_InterFunc.cdl
2 -- Created: Wed Feb 18 09:06:58 1998
3 -- Author: Jeanine PANCIATICI
5 ---Copyright: Matra Datavision 1998
7 private class InterFunc from Adaptor3d inherits FunctionWithDerivative from math
9 ---Purpose: Used to find the points U(t) = U0 or V(t) = V0 in
10 -- order to determine the Cn discontinuities of an
11 -- Adpator_CurveOnSurface relativly to the
12 -- discontinuities of the surface.
15 HCurve2d from Adaptor2d
17 raises ConstructionError
20 Create (C : HCurve2d from Adaptor2d; FixVal: Real from Standard;
23 raises ConstructionError from Standard;
24 ---Purpose: build the function U(t)=FixVal if Fix =1 or
25 -- V(t)=FixVal if Fix=2
27 Value(me: in out; X: Real; F: out Real)
28 ---Purpose: computes the value <F>of the function for the variable <X>.
29 -- Returns True if the calculation were successfully done,
35 Derivative(me: in out; X: Real; D: out Real)
36 ---Purpose: computes the derivative <D> of the function
37 -- for the variable <X>.
38 -- Returns True if the calculation were successfully done,
44 Values(me: in out; X: Real; F, D: out Real)
45 ---Purpose: computes the value <F> and the derivative <D> of the
46 -- function for the variable <X>.
47 -- Returns True if the calculation were successfully done,
54 myCurve2d : HCurve2d from Adaptor2d;
55 myFixVal : Real from Standard;
56 myFix : Integer from Standard;