1 -- Created on: 1997-02-21
2 -- Created by: Laurent BOURESCHE
3 -- Copyright (c) 1997-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 class SurfCurvConstRadInv from BRepBlend
19 inherits SurfCurvFuncInv from Blend
21 ---Purpose: Class used to compute a solution of the
22 -- surfRstConstRad problem on a done restriction of the
24 -- The vector <X> used in Value, Values and Derivatives
25 -- methods has to be the vector of the parametric
26 -- coordinates wguide, wcurv, wrst where wguide is the
27 -- parameter on the guide line, wcurv is the parameter on
28 -- the curve, wrst is the parameter on the restriction on
33 HCurve2d from Adaptor2d,
34 HCurve from Adaptor3d,
35 HSurface from Adaptor3d,
42 Create(S : HSurface from Adaptor3d;
43 C : HCurve from Adaptor3d;
44 Cg : HCurve from Adaptor3d)
45 returns SurfCurvConstRadInv from BRepBlend;
47 Set(me: in out; R: Real from Standard; Choix: Integer from Standard)
51 ---Purpose: returns 3.
52 returns Integer from Standard;
54 Value(me: in out; X: Vector; F: out Vector)
55 ---Purpose: computes the values <F> of the Functions for the
57 -- Returns True if the computation was done successfully,
59 returns Boolean from Standard;
61 Derivatives(me: in out; X: Vector; D: out Matrix)
62 ---Purpose: returns the values <D> of the derivatives for the
64 -- Returns True if the computation was done successfully,
66 returns Boolean from Standard;
68 Values(me: in out; X: Vector; F: out Vector; D: out Matrix)
69 ---Purpose: returns the values <F> of the functions and the derivatives
70 -- <D> for the variable <X>.
71 -- Returns True if the computation was done successfully,
73 returns Boolean from Standard;
75 Set(me: in out; Rst : HCurve2d from Adaptor2d);
76 ---Purpose: Set the restriction on which a solution has to be found.
78 GetTolerance(me; Tolerance: out Vector from math; Tol: Real from Standard);
79 ---Purpose: Returns in the vector Tolerance the parametric tolerance
80 -- for each of the 3 variables;
81 -- Tol is the tolerance used in 3d space.
83 GetBounds(me; InfBound,SupBound: out Vector from math);
84 ---Purpose: Returns in the vector InfBound the lowest values allowed
85 -- for each of the 3 variables.
86 -- Returns in the vector SupBound the greatest values allowed
87 -- for each of the 3 variables.
89 IsSolution(me: in out; Sol: Vector from math; Tol: Real from Standard)
90 ---Purpose: Returns Standard_True if Sol is a zero of the function.
91 -- Tol is the tolerance used in 3d space.
92 returns Boolean from Standard;
96 surf : HSurface from Adaptor3d;
97 curv : HCurve from Adaptor3d;
98 guide : HCurve from Adaptor3d;
99 rst : HCurve2d from Adaptor2d;
100 ray : Real from Standard;
101 choix : Integer from Standard;
103 end SurfCurvConstRadInv;