Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:15:34

0001 // Created on: 1996-08-27
0002 // Created by: Philippe MANGIN
0003 // Copyright (c) 1996-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 _AppBlend_Approx_HeaderFile
0018 #define _AppBlend_Approx_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <gp_Pnt.hxx>
0026 #include <NCollection_Array2.hxx>
0027 #include <NCollection_Array1.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <gp_Pnt2d.hxx>
0030 
0031 //! Bspline approximation of a surface.
0032 class AppBlend_Approx
0033 {
0034 public:
0035   DEFINE_STANDARD_ALLOC
0036 
0037   Standard_EXPORT virtual bool IsDone() const = 0;
0038 
0039   Standard_EXPORT virtual void SurfShape(int& UDegree,
0040                                          int& VDegree,
0041                                          int& NbUPoles,
0042                                          int& NbVPoles,
0043                                          int& NbUKnots,
0044                                          int& NbVKnots) const = 0;
0045 
0046   Standard_EXPORT virtual void Surface(NCollection_Array2<gp_Pnt>& TPoles,
0047                                        NCollection_Array2<double>& TWeights,
0048                                        NCollection_Array1<double>& TUKnots,
0049                                        NCollection_Array1<double>& TVKnots,
0050                                        NCollection_Array1<int>&    TUMults,
0051                                        NCollection_Array1<int>&    TVMults) const = 0;
0052 
0053   Standard_EXPORT virtual int UDegree() const = 0;
0054 
0055   Standard_EXPORT virtual int VDegree() const = 0;
0056 
0057   Standard_EXPORT virtual const NCollection_Array2<gp_Pnt>& SurfPoles() const = 0;
0058 
0059   Standard_EXPORT virtual const NCollection_Array2<double>& SurfWeights() const = 0;
0060 
0061   Standard_EXPORT virtual const NCollection_Array1<double>& SurfUKnots() const = 0;
0062 
0063   Standard_EXPORT virtual const NCollection_Array1<double>& SurfVKnots() const = 0;
0064 
0065   Standard_EXPORT virtual const NCollection_Array1<int>& SurfUMults() const = 0;
0066 
0067   Standard_EXPORT virtual const NCollection_Array1<int>& SurfVMults() const = 0;
0068 
0069   Standard_EXPORT virtual int NbCurves2d() const = 0;
0070 
0071   Standard_EXPORT virtual void Curves2dShape(int& Degree, int& NbPoles, int& NbKnots) const = 0;
0072 
0073   Standard_EXPORT virtual void Curve2d(const int                     Index,
0074                                        NCollection_Array1<gp_Pnt2d>& TPoles,
0075                                        NCollection_Array1<double>&   TKnots,
0076                                        NCollection_Array1<int>&      TMults) const = 0;
0077 
0078   Standard_EXPORT virtual int Curves2dDegree() const = 0;
0079 
0080   Standard_EXPORT virtual const NCollection_Array1<gp_Pnt2d>& Curve2dPoles(
0081     const int Index) const = 0;
0082 
0083   Standard_EXPORT virtual const NCollection_Array1<double>& Curves2dKnots() const = 0;
0084 
0085   Standard_EXPORT virtual const NCollection_Array1<int>& Curves2dMults() const = 0;
0086 
0087   Standard_EXPORT virtual void TolReached(double& Tol3d, double& Tol2d) const = 0;
0088 
0089   Standard_EXPORT virtual double TolCurveOnSurf(const int Index) const = 0;
0090   Standard_EXPORT virtual ~AppBlend_Approx();
0091 };
0092 
0093 #endif // _AppBlend_Approx_HeaderFile