1 // Created on: 1992-08-28
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1992-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 _Geom2dEvaluator_HeaderFile
18 #define _Geom2dEvaluator_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Real.hxx>
23 #include <Standard_Integer.hxx>
28 //! The Geom2dEvaluator package provides utilities for .
29 //! calculating value and derivatives of offset curve
30 //! using corresponding values of base curve
39 //! Recalculate D1 values of base curve into D0 value of offset curve
40 Standard_EXPORT static void CalculateD0(gp_Pnt2d& theValue,
41 const gp_Vec2d& theD1, const Standard_Real theOffset);
43 //! Recalculate D2 values of base curve into D1 values of offset curve
44 Standard_EXPORT static void CalculateD1(gp_Pnt2d& theValue,
46 const gp_Vec2d& theD2, const Standard_Real theOffset);
49 //! Recalculate D3 values of base curve into D2 values of offset curve
50 Standard_EXPORT static void CalculateD2(gp_Pnt2d& theValue,
53 const gp_Vec2d& theD3, const Standard_Boolean theIsDirChange,
54 const Standard_Real theOffset);
57 //! Recalculate D3 values of base curve into D3 values of offset curve
58 Standard_EXPORT static void CalculateD3(gp_Pnt2d& theValue,
62 const gp_Vec2d& theD4, const Standard_Boolean theIsDirChange,
63 const Standard_Real theOffset);
66 //! Recalculate derivatives in the singular point
67 //! Returns true if the direction of derivatives is changed
68 Standard_EXPORT static Standard_Boolean AdjustDerivative(const Standard_Integer theMaxDerivative,
69 const Standard_Real theU,
87 #endif // _Geom2dEvaluator_HeaderFile