Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BlendFunc.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 1993-12-03
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1993-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 _BlendFunc_HeaderFile
0018 #define _BlendFunc_HeaderFile
0019 
0020 #include <Adaptor3d_Surface.hxx>
0021 #include <BlendFunc_SectionShape.hxx>
0022 #include <Convert_ParameterisationType.hxx>
0023 #include <NCollection_Array1.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <GeomAbs_Shape.hxx>
0026 
0027 class gp_Pnt2d;
0028 class gp_Vec;
0029 
0030 //! This package provides a set of generic functions, that can
0031 //! instantiated to compute blendings between two surfaces
0032 //! (Constant radius, Evolutive radius, Ruled surface).
0033 class BlendFunc
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT static void GetShape(const BlendFunc_SectionShape  SectShape,
0039                                        const double                  MaxAng,
0040                                        int&                          NbPoles,
0041                                        int&                          NbKnots,
0042                                        int&                          Degree,
0043                                        Convert_ParameterisationType& TypeConv);
0044 
0045   Standard_EXPORT static void Knots(const BlendFunc_SectionShape SectShape,
0046                                     NCollection_Array1<double>&  TKnots);
0047 
0048   Standard_EXPORT static void Mults(const BlendFunc_SectionShape SectShape,
0049                                     NCollection_Array1<int>&     TMults);
0050 
0051   Standard_EXPORT static void GetMinimalWeights(const BlendFunc_SectionShape       SectShape,
0052                                                 const Convert_ParameterisationType TConv,
0053                                                 const double                       AngleMin,
0054                                                 const double                       AngleMax,
0055                                                 NCollection_Array1<double>&        Weigths);
0056 
0057   //! Used to obtain the next level of continuity.
0058   Standard_EXPORT static GeomAbs_Shape NextShape(const GeomAbs_Shape S);
0059 
0060   Standard_EXPORT static bool ComputeNormal(const occ::handle<Adaptor3d_Surface>& Surf,
0061                                             const gp_Pnt2d&                       p2d,
0062                                             gp_Vec&                               Normal);
0063 
0064   Standard_EXPORT static bool ComputeDNormal(const occ::handle<Adaptor3d_Surface>& Surf,
0065                                              const gp_Pnt2d&                       p2d,
0066                                              gp_Vec&                               Normal,
0067                                              gp_Vec&                               DNu,
0068                                              gp_Vec&                               DNv);
0069 };
0070 
0071 #endif // _BlendFunc_HeaderFile