CommitLineData
2-- Created: Tue Jul 29 12:04:39 1997
3-- Author: Jerome LEMONIER
4-- <jlr@sgi64>
6
8
9inherits SurfCurvFuncInv from Blend
10
11 ---Purpose: Class used to compute a solution of the
12 -- surfRstConstRad problem on a done restriction of the
13 -- surface.
14 -- The vector <X> used in Value, Values and Derivatives
15 -- methods has to be the vector of the parametric
16 -- coordinates wguide, wcurv, wrst where wguide is the
17 -- parameter on the guide line, wcurv is the parameter on
18 -- the curve, wrst is the parameter on the restriction on
19 -- the surface.
20
21uses
25 Vector from math,
26 Matrix from math,
27 Function from Law
28
29
30is
31
32 Create(S : HSurface from Adaptor3d;
33 C : HCurve from Adaptor3d;
34 Cg : HCurve from Adaptor3d;
35 Evol : Function from Law)
37
38 Set(me: in out;Choix: Integer from Standard)
39 is static;
40
41 NbEquations(me)
42 ---Purpose: returns 3.
43 returns Integer from Standard;
44
45 Value(me: in out; X: Vector; F: out Vector)
46 ---Purpose: computes the values <F> of the Functions for the
47 -- variable <X>.
48 -- Returns True if the computation was done successfully,
49 -- False otherwise.
50 returns Boolean from Standard;
51
52 Derivatives(me: in out; X: Vector; D: out Matrix)
53 ---Purpose: returns the values <D> of the derivatives for the
54 -- variable <X>.
55 -- Returns True if the computation was done successfully,
56 -- False otherwise.
57 returns Boolean from Standard;
58
59 Values(me: in out; X: Vector; F: out Vector; D: out Matrix)
60 ---Purpose: returns the values <F> of the functions and the derivatives
61 -- <D> for the variable <X>.
62 -- Returns True if the computation was done successfully,
63 -- False otherwise.
64 returns Boolean from Standard;
65
66 Set(me: in out; Rst : HCurve2d from Adaptor2d);
67 ---Purpose: Set the restriction on which a solution has to be found.
68
69 GetTolerance(me; Tolerance: out Vector from math; Tol: Real from Standard);
70 ---Purpose: Returns in the vector Tolerance the parametric tolerance
71 -- for each of the 3 variables;
72 -- Tol is the tolerance used in 3d space.
73
74 GetBounds(me; InfBound,SupBound: out Vector from math);
75 ---Purpose: Returns in the vector InfBound the lowest values allowed
76 -- for each of the 3 variables.
77 -- Returns in the vector SupBound the greatest values allowed
78 -- for each of the 3 variables.
79
80 IsSolution(me: in out; Sol: Vector from math; Tol: Real from Standard)
81 ---Purpose: Returns Standard_True if Sol is a zero of the function.
82 -- Tol is the tolerance used in 3d space.
83 returns Boolean from Standard;
84
85fields
86
87 surf : HSurface from Adaptor3d;
88 curv : HCurve from Adaptor3d;
89 guide : HCurve from Adaptor3d;
90 rst : HCurve2d from Adaptor2d;
91 ray : Real from Standard;
92 choix : Integer from Standard;
93 tevol : Function from Law;
94 sg1 : Real from Standard;
95
96