42cf5bc1 |
1 | // Created on: 1997-09-30 |
2 | // Created by: Roman BORISOV |
3 | // Copyright (c) 1997-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 _Approx_CurveOnSurface_HeaderFile |
18 | #define _Approx_CurveOnSurface_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Boolean.hxx> |
25 | #include <Standard_Real.hxx> |
26 | #include <GeomAbs_Shape.hxx> |
27 | #include <Standard_Integer.hxx> |
28 | class Geom2d_BSplineCurve; |
29 | class Geom_BSplineCurve; |
30 | class Standard_OutOfRange; |
31 | class Standard_ConstructionError; |
32 | class Adaptor2d_HCurve2d; |
33 | class Adaptor3d_HSurface; |
34 | |
35 | |
36 | //! Approximation of curve on surface |
37 | class Approx_CurveOnSurface |
38 | { |
39 | public: |
40 | |
41 | DEFINE_STANDARD_ALLOC |
42 | |
43 | |
44 | Standard_EXPORT Approx_CurveOnSurface(const Handle(Adaptor2d_HCurve2d)& C2D, const Handle(Adaptor3d_HSurface)& Surf, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol, const GeomAbs_Shape Continuity, const Standard_Integer MaxDegree, const Standard_Integer MaxSegments, const Standard_Boolean Only3d = Standard_False, const Standard_Boolean Only2d = Standard_False); |
45 | |
46 | Standard_EXPORT Standard_Boolean IsDone() const; |
47 | |
48 | Standard_EXPORT Standard_Boolean HasResult() const; |
49 | |
50 | Standard_EXPORT Handle(Geom_BSplineCurve) Curve3d() const; |
51 | |
52 | Standard_EXPORT Standard_Real MaxError3d() const; |
53 | |
54 | Standard_EXPORT Handle(Geom2d_BSplineCurve) Curve2d() const; |
55 | |
56 | Standard_EXPORT Standard_Real MaxError2dU() const; |
57 | |
58 | //! returns the maximum errors relativly to the U component or the V component of the |
59 | //! 2d Curve |
60 | Standard_EXPORT Standard_Real MaxError2dV() const; |
61 | |
62 | |
63 | |
64 | |
65 | protected: |
66 | |
67 | |
68 | |
69 | |
70 | |
71 | private: |
72 | |
73 | |
74 | |
75 | Handle(Geom2d_BSplineCurve) myCurve2d; |
76 | Handle(Geom_BSplineCurve) myCurve3d; |
77 | Standard_Boolean myIsDone; |
78 | Standard_Boolean myHasResult; |
79 | Standard_Real myError3d; |
80 | Standard_Real myError2dU; |
81 | Standard_Real myError2dV; |
82 | |
83 | |
84 | }; |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | #endif // _Approx_CurveOnSurface_HeaderFile |