Back to home page

EIC code displayed by LXR

 
 

    


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

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 <TColStd_Array1OfReal.hxx>
0024 #include <TColStd_Array1OfInteger.hxx>
0025 #include <GeomAbs_Shape.hxx>
0026 
0027 class gp_Pnt2d;
0028 class gp_Vec;
0029 
0030 
0031 //! This package provides a set of generic functions, that can
0032 //! instantiated to compute blendings between two surfaces
0033 //! (Constant radius, Evolutive radius, Ruled surface).
0034 class BlendFunc 
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   Standard_EXPORT static void GetShape (const BlendFunc_SectionShape SectShape, const Standard_Real MaxAng, Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Convert_ParameterisationType& TypeConv);
0042   
0043   Standard_EXPORT static void Knots (const BlendFunc_SectionShape SectShape, TColStd_Array1OfReal& TKnots);
0044   
0045   Standard_EXPORT static void Mults (const BlendFunc_SectionShape SectShape, TColStd_Array1OfInteger& TMults);
0046   
0047   Standard_EXPORT static void GetMinimalWeights (const BlendFunc_SectionShape SectShape, const Convert_ParameterisationType TConv, const Standard_Real AngleMin, const Standard_Real AngleMax, TColStd_Array1OfReal& Weigths);
0048   
0049   //! Used  to obtain the next level of continuity.
0050   Standard_EXPORT static GeomAbs_Shape NextShape (const GeomAbs_Shape S);
0051   
0052   Standard_EXPORT static Standard_Boolean ComputeNormal (const Handle(Adaptor3d_Surface)& Surf, const gp_Pnt2d& p2d, gp_Vec& Normal);
0053   
0054   Standard_EXPORT static Standard_Boolean ComputeDNormal (const Handle(Adaptor3d_Surface)& Surf, const gp_Pnt2d& p2d, gp_Vec& Normal, gp_Vec& DNu, gp_Vec& DNv);
0055 
0056 };
0057 
0058 #endif // _BlendFunc_HeaderFile