Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-11 08:33:12

0001 // Created on: 1998-03-04
0002 // Created by: Roman BORISOV
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _GeomFill_Darboux_HeaderFile
0018 #define _GeomFill_Darboux_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <GeomFill_TrihedronLaw.hxx>
0023 #include <Standard_Real.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <GeomAbs_Shape.hxx>
0026 #include <TColStd_Array1OfReal.hxx>
0027 class gp_Vec;
0028 
0029 class GeomFill_Darboux;
0030 DEFINE_STANDARD_HANDLE(GeomFill_Darboux, GeomFill_TrihedronLaw)
0031 
0032 //! Defines Darboux case of Frenet Trihedron Law
0033 class GeomFill_Darboux : public GeomFill_TrihedronLaw
0034 {
0035 
0036 public:
0037   Standard_EXPORT GeomFill_Darboux();
0038 
0039   Standard_EXPORT virtual Handle(GeomFill_TrihedronLaw) Copy() const Standard_OVERRIDE;
0040 
0041   //! compute Triedrhon on curve at parameter <Param>
0042   Standard_EXPORT virtual Standard_Boolean D0(const Standard_Real Param,
0043                                               gp_Vec&             Tangent,
0044                                               gp_Vec&             Normal,
0045                                               gp_Vec&             BiNormal) Standard_OVERRIDE;
0046 
0047   //! compute Triedrhon and  derivative Trihedron  on curve
0048   //! at parameter <Param>
0049   //! Warning : It used only for C1 or C2 approximation
0050   Standard_EXPORT virtual Standard_Boolean D1(const Standard_Real Param,
0051                                               gp_Vec&             Tangent,
0052                                               gp_Vec&             DTangent,
0053                                               gp_Vec&             Normal,
0054                                               gp_Vec&             DNormal,
0055                                               gp_Vec&             BiNormal,
0056                                               gp_Vec&             DBiNormal) Standard_OVERRIDE;
0057 
0058   //! compute  Trihedron on curve
0059   //! first and seconde  derivatives.
0060   //! Warning : It used only for C2 approximation
0061   Standard_EXPORT virtual Standard_Boolean D2(const Standard_Real Param,
0062                                               gp_Vec&             Tangent,
0063                                               gp_Vec&             DTangent,
0064                                               gp_Vec&             D2Tangent,
0065                                               gp_Vec&             Normal,
0066                                               gp_Vec&             DNormal,
0067                                               gp_Vec&             D2Normal,
0068                                               gp_Vec&             BiNormal,
0069                                               gp_Vec&             DBiNormal,
0070                                               gp_Vec&             D2BiNormal) Standard_OVERRIDE;
0071 
0072   //! Returns  the number  of  intervals for  continuity
0073   //! <S>.
0074   //! May be one if Continuity(me) >= <S>
0075   Standard_EXPORT virtual Standard_Integer NbIntervals(const GeomAbs_Shape S) const
0076     Standard_OVERRIDE;
0077 
0078   //! Stores in <T> the  parameters bounding the intervals
0079   //! of continuity <S>.
0080   //!
0081   //! The array must provide  enough room to  accommodate
0082   //! for the parameters. i.e. T.Length() > NbIntervals()
0083   Standard_EXPORT virtual void Intervals(TColStd_Array1OfReal& T,
0084                                          const GeomAbs_Shape   S) const Standard_OVERRIDE;
0085 
0086   //! Get average value of Tangent(t) and Normal(t) it is usfull to
0087   //! make fast approximation of rational  surfaces.
0088   Standard_EXPORT virtual void GetAverageLaw(gp_Vec& ATangent,
0089                                              gp_Vec& ANormal,
0090                                              gp_Vec& ABiNormal) Standard_OVERRIDE;
0091 
0092   //! Say if the law is Constant.
0093   Standard_EXPORT virtual Standard_Boolean IsConstant() const Standard_OVERRIDE;
0094 
0095   //! Return False.
0096   Standard_EXPORT virtual Standard_Boolean IsOnlyBy3dCurve() const Standard_OVERRIDE;
0097 
0098   DEFINE_STANDARD_RTTIEXT(GeomFill_Darboux, GeomFill_TrihedronLaw)
0099 
0100 protected:
0101 private:
0102 };
0103 
0104 #endif // _GeomFill_Darboux_HeaderFile