Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:39

0001 // Created on: 1997-12-09
0002 // Created by: Philippe MANGIN
0003 // Copyright (c) 1997-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_Fixed_HeaderFile
0018 #define _GeomFill_Fixed_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 
0028 
0029 class GeomFill_Fixed;
0030 DEFINE_STANDARD_HANDLE(GeomFill_Fixed, GeomFill_TrihedronLaw)
0031 
0032 //! Defined an constant TrihedronLaw
0033 class GeomFill_Fixed : public GeomFill_TrihedronLaw
0034 {
0035 
0036 public:
0037 
0038   
0039   Standard_EXPORT GeomFill_Fixed(const gp_Vec& Tangent, const gp_Vec& Normal);
0040   
0041   Standard_EXPORT virtual Handle(GeomFill_TrihedronLaw) Copy() const Standard_OVERRIDE;
0042   
0043   //! compute Triedrhon on curve at parameter <Param>
0044   Standard_EXPORT virtual Standard_Boolean D0 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& Normal, gp_Vec& BiNormal) Standard_OVERRIDE;
0045   
0046   //! compute Triedrhon and  derivative Trihedron  on curve
0047   //! at parameter <Param>
0048   //! Warning : It used only for C1 or C2 approximation
0049   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;
0050   
0051   //! compute  Trihedron on curve
0052   //! first and seconde  derivatives.
0053   //! Warning : It used only for C2 approximation
0054   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;
0055   
0056   //! Returns  the number  of  intervals for  continuity
0057   //! <S>.
0058   //! May be one if Continuity(me) >= <S>
0059   Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
0060   
0061   //! Stores in <T> the  parameters bounding the intervals
0062   //! of continuity <S>.
0063   //!
0064   //! The array must provide  enough room to  accommodate
0065   //! for the parameters. i.e. T.Length() > NbIntervals()
0066   Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
0067   
0068   //! Get average value of Tangent(t) and Normal(t) it is usfull to
0069   //! make fast approximation of rational  surfaces.
0070   Standard_EXPORT virtual void GetAverageLaw (gp_Vec& ATangent, gp_Vec& ANormal, gp_Vec& ABiNormal) Standard_OVERRIDE;
0071   
0072   //! Return True.
0073   Standard_EXPORT virtual Standard_Boolean IsConstant() const Standard_OVERRIDE;
0074 
0075 
0076 
0077 
0078   DEFINE_STANDARD_RTTIEXT(GeomFill_Fixed,GeomFill_TrihedronLaw)
0079 
0080 protected:
0081 
0082 
0083 
0084 
0085 private:
0086 
0087 
0088   gp_Vec T;
0089   gp_Vec N;
0090   gp_Vec B;
0091 
0092 
0093 };
0094 
0095 
0096 
0097 
0098 
0099 
0100 
0101 #endif // _GeomFill_Fixed_HeaderFile