b311480e |
1 | -- Created on: 1997-11-06 |
2 | -- Created by: Roman BORISOV |
3 | -- Copyright (c) 1997-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | private class PrjFunc from ProjLib inherits FunctionSetWithDerivatives from math |
23 | |
24 | ---Purpose: |
25 | |
26 | uses |
27 | Vector from math, |
28 | Matrix from math, |
29 | CurvePtr from Adaptor3d, |
30 | SurfacePtr from Adaptor3d, |
31 | Pnt2d from gp |
32 | |
33 | raises ConstructionError |
34 | |
35 | is |
36 | Create (C: CurvePtr from Adaptor3d; FixVal: Real from Standard; S: SurfacePtr from Adaptor3d; Fix: Integer) |
37 | returns PrjFunc |
38 | raises ConstructionError; |
39 | |
40 | NbVariables(me) |
41 | ---Purpose: returns the number of variables of the function. |
42 | |
43 | returns Integer; |
44 | |
45 | NbEquations(me) |
46 | ---Purpose: returns the number of equations of the function. |
47 | |
48 | returns Integer; |
49 | |
50 | Value(me: in out; X: Vector from math; F: out Vector from math) |
51 | ---Purpose: computes the values <F> of the Functions for the |
52 | -- variable <X>. |
53 | -- Returns True if the computation was done successfully, |
54 | -- False otherwise. |
55 | |
56 | returns Boolean; |
57 | |
58 | Derivatives(me: in out; X: Vector from math; D: out Matrix from math) |
59 | ---Purpose: returns the values <D> of the derivatives for the |
60 | -- variable <X>. |
61 | -- Returns True if the computation was done successfully, |
62 | -- False otherwise. |
63 | |
64 | returns Boolean; |
65 | |
66 | Values(me: in out; X: Vector from math; F: out Vector from math; D: out Matrix from math) |
67 | ---Purpose: returns the values <F> of the functions and the derivatives |
68 | -- <D> for the variable <X>. |
69 | -- Returns True if the computation was done successfully, |
70 | -- False otherwise. |
71 | |
72 | returns Boolean; |
73 | |
74 | Solution(me) returns Pnt2d from gp; |
75 | ---Purpose: returns point on surface |
76 | |
77 | fields |
78 | |
79 | myCurve : CurvePtr from Adaptor3d; |
80 | mySurface : SurfacePtr from Adaptor3d; |
81 | myt : Real from Standard; |
82 | myU, myV : Real from Standard; |
83 | myFix : Integer from Standard; |
84 | myNorm : Real from Standard; |
85 | end PrjFunc; |