b311480e |
1 | -- Created on: 1996-06-06 |
2 | -- Created by: Stagiaire Xuan Trang PHAMPHU |
3 | -- Copyright (c) 1996-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 | |
23 | class ChamfInv from BlendFunc |
24 | |
25 | inherits FuncInv from Blend |
26 | |
27 | ---Purpose: |
28 | |
29 | uses Vector from math, |
30 | Matrix from math, |
31 | HCurve2d from Adaptor2d, |
32 | HCurve from Adaptor3d, |
33 | HSurface from Adaptor3d, |
34 | Corde from BlendFunc |
35 | |
36 | is |
37 | Create(S1,S2: HSurface from Adaptor3d; C: HCurve from Adaptor3d) |
38 | |
39 | returns ChamfInv from BlendFunc; |
40 | |
41 | Set(me: in out; OnFirst: Boolean from Standard; |
42 | COnSurf: HCurve2d from Adaptor2d) |
43 | |
44 | ; |
45 | |
46 | |
47 | GetTolerance(me; Tolerance: out Vector from math; Tol: Real from Standard) |
48 | |
49 | ; |
50 | |
51 | |
52 | GetBounds(me; InfBound,SupBound: out Vector from math) |
53 | |
54 | ; |
55 | |
56 | |
57 | IsSolution(me: in out; Sol: Vector from math; Tol: Real from Standard) |
58 | |
59 | returns Boolean from Standard |
60 | |
61 | ; |
62 | |
63 | |
64 | NbEquations(me) |
65 | ---Purpose: returns the number of equations of the function. |
66 | returns Integer from Standard |
67 | is redefined static ; |
68 | |
69 | Value(me: in out; X: Vector; F: out Vector) |
70 | ---Purpose: computes the values <F> of the Functions for the |
71 | -- variable <X>. |
72 | -- Returns True if the computation was done successfully, |
73 | -- False otherwise. |
74 | |
75 | returns Boolean from Standard |
76 | is redefined static ; |
77 | |
78 | |
79 | Derivatives(me: in out; X: Vector; D: out Matrix) |
80 | ---Purpose: returns the values <D> of the derivatives for the |
81 | -- variable <X>. |
82 | -- Returns True if the computation was done successfully, |
83 | -- False otherwise. |
84 | |
85 | returns Boolean from Standard |
86 | is redefined static ; |
87 | |
88 | |
89 | Values(me: in out; X: Vector; F: out Vector; D: out Matrix) |
90 | ---Purpose: returns the values <F> of the functions and the derivatives |
91 | -- <D> for the variable <X>. |
92 | -- Returns True if the computation was done successfully, |
93 | -- False otherwise. |
94 | |
95 | returns Boolean from Standard |
96 | is redefined static ; |
97 | |
98 | -- methodes hors template (en plus du create) |
99 | |
100 | Set(me: in out; Dist1, Dist2: Real from Standard; Choix: Integer from Standard) |
101 | |
102 | is static; |
103 | |
104 | |
105 | fields |
106 | |
107 | surf1 : HSurface from Adaptor3d; |
108 | surf2 : HSurface from Adaptor3d; |
7fd59977 |
109 | curv : HCurve from Adaptor3d; |
110 | csurf : HCurve2d from Adaptor2d; |
111 | choix : Integer from Standard; |
112 | first : Boolean from Standard; |
113 | corde1: Corde from BlendFunc; |
114 | corde2: Corde from BlendFunc; |
115 | |
116 | end ChamfInv; |