42cf5bc1 |
1 | // Created on: 1998-03-04 |
2 | // Created by: Roman BORISOV |
3 | // Copyright (c) 1998-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 _GeomFill_Darboux_HeaderFile |
18 | #define _GeomFill_Darboux_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <GeomFill_TrihedronLaw.hxx> |
24 | #include <Standard_Boolean.hxx> |
25 | #include <Standard_Real.hxx> |
26 | #include <Standard_Integer.hxx> |
27 | #include <GeomAbs_Shape.hxx> |
28 | #include <TColStd_Array1OfReal.hxx> |
42cf5bc1 |
29 | class gp_Vec; |
30 | |
31 | |
32 | class GeomFill_Darboux; |
33 | DEFINE_STANDARD_HANDLE(GeomFill_Darboux, GeomFill_TrihedronLaw) |
34 | |
35 | //! Defines Darboux case of Frenet Trihedron Law |
36 | class GeomFill_Darboux : public GeomFill_TrihedronLaw |
37 | { |
38 | |
39 | public: |
40 | |
41 | |
42 | Standard_EXPORT GeomFill_Darboux(); |
43 | |
44 | Standard_EXPORT virtual Handle(GeomFill_TrihedronLaw) Copy() const Standard_OVERRIDE; |
45 | |
46 | //! compute Triedrhon on curve at parameter <Param> |
47 | Standard_EXPORT virtual Standard_Boolean D0 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& Normal, gp_Vec& BiNormal) Standard_OVERRIDE; |
48 | |
49 | //! compute Triedrhon and derivative Trihedron on curve |
50 | //! at parameter <Param> |
a25d5aaa |
51 | //! Warning : It used only for C1 or C2 approximation |
42cf5bc1 |
52 | Standard_EXPORT virtual Standard_Boolean D1 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& DTangent, gp_Vec& Normal, gp_Vec& DNormal, gp_Vec& BiNormal, gp_Vec& DBiNormal) Standard_OVERRIDE; |
53 | |
54 | //! compute Trihedron on curve |
55 | //! first and seconde derivatives. |
a25d5aaa |
56 | //! Warning : It used only for C2 approximation |
42cf5bc1 |
57 | Standard_EXPORT virtual Standard_Boolean D2 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& DTangent, gp_Vec& D2Tangent, gp_Vec& Normal, gp_Vec& DNormal, gp_Vec& D2Normal, gp_Vec& BiNormal, gp_Vec& DBiNormal, gp_Vec& D2BiNormal) Standard_OVERRIDE; |
58 | |
59 | //! Returns the number of intervals for continuity |
60 | //! <S>. |
61 | //! May be one if Continuity(me) >= <S> |
62 | Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE; |
63 | |
64 | //! Stores in <T> the parameters bounding the intervals |
65 | //! of continuity <S>. |
66 | //! |
21c7c457 |
67 | //! The array must provide enough room to accommodate |
42cf5bc1 |
68 | //! for the parameters. i.e. T.Length() > NbIntervals() |
69 | Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE; |
70 | |
71 | //! Get average value of Tangent(t) and Normal(t) it is usfull to |
72 | //! make fast approximation of rational surfaces. |
73 | Standard_EXPORT virtual void GetAverageLaw (gp_Vec& ATangent, gp_Vec& ANormal, gp_Vec& ABiNormal) Standard_OVERRIDE; |
74 | |
75 | //! Say if the law is Constant. |
76 | Standard_EXPORT virtual Standard_Boolean IsConstant() const Standard_OVERRIDE; |
77 | |
78 | //! Return False. |
79 | Standard_EXPORT virtual Standard_Boolean IsOnlyBy3dCurve() const Standard_OVERRIDE; |
80 | |
81 | |
82 | |
83 | |
92efcf78 |
84 | DEFINE_STANDARD_RTTIEXT(GeomFill_Darboux,GeomFill_TrihedronLaw) |
42cf5bc1 |
85 | |
86 | protected: |
87 | |
88 | |
89 | |
90 | |
91 | private: |
92 | |
93 | |
94 | |
95 | |
96 | }; |
97 | |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | |
104 | #endif // _GeomFill_Darboux_HeaderFile |