b311480e |
1 | -- Created on: 1997-05-13 |
2 | -- Created by: Stagiaire Francois DUMONT |
3 | -- Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class DenominatorMultiplier from GeomLib |
18 | |
ff8178ef |
19 | ---Purpose: this defines an evaluator for a function of 2 variables |
20 | -- that will be used by CancelDenominatorDerivative in one |
21 | -- direction. |
7fd59977 |
22 | |
23 | uses |
24 | |
25 | BSplineSurface from Geom, |
26 | Array1OfReal from TColStd |
27 | |
28 | raises |
29 | |
30 | OutOfRange from Standard, |
31 | ConstructionError from Standard |
32 | is |
33 | |
34 | Create( Surface : BSplineSurface from Geom ; |
35 | KnotVector : Array1OfReal from TColStd) |
36 | returns DenominatorMultiplier from GeomLib |
37 | raises |
38 | ConstructionError from Standard; |
39 | |
40 | ---Purpose: if the surface is rational this will define the evaluator |
41 | -- of a real function of 2 variables a(u,v) such that |
42 | -- if we define a new surface by : |
43 | -- a(u,v) * N(u,v) |
44 | -- NewF(u,v) = ---------------- |
45 | -- a(u,v) * D(u,v) |
46 | |
47 | |
48 | Value(me; UParameter : in Real from Standard ; |
49 | VParameter : in Real from Standard) |
50 | |
51 | returns Real from Standard |
52 | raises |
53 | OutOfRange from Standard |
54 | ---Purpose: Returns the value of |
55 | -- a(UParameter,VParameter)= |
56 | -- |
57 | -- H0(UParameter)/Denominator(Umin,Vparameter) |
58 | -- |
59 | -- D Denominator(Umin,Vparameter) |
60 | -- - ------------------------------[H1(u)]/(Denominator(Umin,Vparameter)^2) |
61 | -- D U |
62 | -- |
63 | -- + H3(UParameter)/Denominator(Umax,Vparameter) |
64 | -- |
65 | -- D Denominator(Umax,Vparameter) |
66 | -- - ------------------------------[H2(u)]/(Denominator(Umax,Vparameter)^2) |
67 | -- D U |
68 | is static; |
69 | |
70 | |
71 | fields |
72 | |
73 | mySurface : BSplineSurface from Geom ; |
74 | myKnotFlatVector : Array1OfReal from TColStd ; |
75 | |
76 | |
77 | end MakeCurvefromApprox; |
78 | |
79 | |
80 | |