Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-28 09:20:10

0001 // Created on: 1997-07-18
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_PolynomialConvertor_HeaderFile
0018 #define _GeomFill_PolynomialConvertor_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <math_Matrix.hxx>
0024 #include <gp_Pnt.hxx>
0025 #include <NCollection_Array1.hxx>
0026 #include <gp_Vec.hxx>
0027 class gp_Pnt;
0028 class gp_Vec;
0029 
0030 //! To convert circular section in polynome
0031 class GeomFill_PolynomialConvertor
0032 {
0033 public:
0034   DEFINE_STANDARD_ALLOC
0035 
0036   Standard_EXPORT GeomFill_PolynomialConvertor();
0037 
0038   //! say if <me> is Initialized
0039   Standard_EXPORT bool Initialized() const;
0040 
0041   Standard_EXPORT void Init();
0042 
0043   Standard_EXPORT void Section(const gp_Pnt&               FirstPnt,
0044                                const gp_Pnt&               Center,
0045                                const gp_Vec&               Dir,
0046                                const double                Angle,
0047                                NCollection_Array1<gp_Pnt>& Poles) const;
0048 
0049   Standard_EXPORT void Section(const gp_Pnt&               FirstPnt,
0050                                const gp_Vec&               DFirstPnt,
0051                                const gp_Pnt&               Center,
0052                                const gp_Vec&               DCenter,
0053                                const gp_Vec&               Dir,
0054                                const gp_Vec&               DDir,
0055                                const double                Angle,
0056                                const double                DAngle,
0057                                NCollection_Array1<gp_Pnt>& Poles,
0058                                NCollection_Array1<gp_Vec>& DPoles) const;
0059 
0060   Standard_EXPORT void Section(const gp_Pnt&               FirstPnt,
0061                                const gp_Vec&               DFirstPnt,
0062                                const gp_Vec&               D2FirstPnt,
0063                                const gp_Pnt&               Center,
0064                                const gp_Vec&               DCenter,
0065                                const gp_Vec&               D2Center,
0066                                const gp_Vec&               Dir,
0067                                const gp_Vec&               DDir,
0068                                const gp_Vec&               D2Dir,
0069                                const double                Angle,
0070                                const double                DAngle,
0071                                const double                D2Angle,
0072                                NCollection_Array1<gp_Pnt>& Poles,
0073                                NCollection_Array1<gp_Vec>& DPoles,
0074                                NCollection_Array1<gp_Vec>& D2Poles) const;
0075 
0076 private:
0077   int         Ordre;
0078   bool        myinit;
0079   math_Matrix BH;
0080 };
0081 
0082 #endif // _GeomFill_PolynomialConvertor_HeaderFile