1 // Created on: 1997-05-13
2 // Created by: Stagiaire Francois DUMONT
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 #ifndef _GeomLib_DenominatorMultiplier_HeaderFile
18 #define _GeomLib_DenominatorMultiplier_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TColStd_Array1OfReal.hxx>
25 #include <Standard_Real.hxx>
26 class Geom_BSplineSurface;
29 //! this defines an evaluator for a function of 2 variables
30 //! that will be used by CancelDenominatorDerivative in one
32 class GeomLib_DenominatorMultiplier
39 //! if the surface is rational this will define the evaluator
40 //! of a real function of 2 variables a(u,v) such that
41 //! if we define a new surface by :
43 //! NewF(u,v) = ----------------
45 Standard_EXPORT GeomLib_DenominatorMultiplier(const Handle(Geom_BSplineSurface)& Surface, const TColStd_Array1OfReal& KnotVector);
47 //! Returns the value of
48 //! a(UParameter,VParameter)=
50 //! H0(UParameter)/Denominator(Umin,Vparameter)
52 //! D Denominator(Umin,Vparameter)
53 //! - ------------------------------[H1(u)]/(Denominator(Umin,Vparameter)^2)
56 //! + H3(UParameter)/Denominator(Umax,Vparameter)
58 //! D Denominator(Umax,Vparameter)
59 //! - ------------------------------[H2(u)]/(Denominator(Umax,Vparameter)^2)
61 Standard_EXPORT Standard_Real Value (const Standard_Real UParameter, const Standard_Real VParameter) const;
76 Handle(Geom_BSplineSurface) mySurface;
77 TColStd_Array1OfReal myKnotFlatVector;
88 #endif // _GeomLib_DenominatorMultiplier_HeaderFile