0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / Geom2dEvaluator / Geom2dEvaluator.hxx
CommitLineData
68ad329c 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
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _Geom2dEvaluator_HeaderFile
18#define _Geom2dEvaluator_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
68ad329c 22
23class gp_Pnt2d;
24class gp_Vec2d;
25
26//! The Geom2dEvaluator package provides utilities for .
27//! calculating value and derivatives of offset curve
28//! using corresponding values of base curve
29
30class Geom2dEvaluator
31{
32public:
33
34 DEFINE_STANDARD_ALLOC
35
36
37 //! Recalculate D1 values of base curve into D0 value of offset curve
38 Standard_EXPORT static void CalculateD0(gp_Pnt2d& theValue,
39 const gp_Vec2d& theD1, const Standard_Real theOffset);
40
41 //! Recalculate D2 values of base curve into D1 values of offset curve
42 Standard_EXPORT static void CalculateD1(gp_Pnt2d& theValue,
43 gp_Vec2d& theD1,
44 const gp_Vec2d& theD2, const Standard_Real theOffset);
45
46
47 //! Recalculate D3 values of base curve into D2 values of offset curve
48 Standard_EXPORT static void CalculateD2(gp_Pnt2d& theValue,
49 gp_Vec2d& theD1,
50 gp_Vec2d& theD2,
51 const gp_Vec2d& theD3, const Standard_Boolean theIsDirChange,
52 const Standard_Real theOffset);
53
54
55 //! Recalculate D3 values of base curve into D3 values of offset curve
56 Standard_EXPORT static void CalculateD3(gp_Pnt2d& theValue,
57 gp_Vec2d& theD1,
58 gp_Vec2d& theD2,
59 gp_Vec2d& theD3,
60 const gp_Vec2d& theD4, const Standard_Boolean theIsDirChange,
61 const Standard_Real theOffset);
62
63
64 //! Recalculate derivatives in the singular point
65 //! Returns true if the direction of derivatives is changed
66 Standard_EXPORT static Standard_Boolean AdjustDerivative(const Standard_Integer theMaxDerivative,
67 const Standard_Real theU,
68 gp_Vec2d& theD1,
69 gp_Vec2d& theD2,
70 gp_Vec2d& theD3,
71 gp_Vec2d& theD4);
72
73
74protected:
75
76
77
78
79
80private:
81
82};
83
84
85#endif // _Geom2dEvaluator_HeaderFile