Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-05 08:36:44

0001 // Created on: 1993-10-06
0002 // Created by: Bruno DUMORTIER
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 _GeomFill_BSplineCurves_HeaderFile
0018 #define _GeomFill_BSplineCurves_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <GeomFill_FillingStyle.hxx>
0025 class Geom_BSplineSurface;
0026 class Geom_BSplineCurve;
0027 
0028 //! An algorithm for constructing a BSpline surface filled
0029 //! from contiguous BSpline curves which form its boundaries.
0030 //! The algorithm accepts two, three or four BSpline
0031 //! curves as the boundaries of the target surface.
0032 //! A range of filling styles - more or less rounded, more
0033 //! or less flat - is available.
0034 //! A BSplineCurves object provides a framework for:
0035 //! -   defining the boundaries, and the filling style of the surface
0036 //! -   implementing the construction algorithm
0037 //! -   consulting the result.
0038 //! Warning
0039 //! Some problems may show up with rational curves.
0040 class GeomFill_BSplineCurves
0041 {
0042 public:
0043   DEFINE_STANDARD_ALLOC
0044 
0045   //! Constructs a default BSpline surface framework.
0046   Standard_EXPORT GeomFill_BSplineCurves();
0047 
0048   Standard_EXPORT GeomFill_BSplineCurves(const Handle(Geom_BSplineCurve)& C1,
0049                                          const Handle(Geom_BSplineCurve)& C2,
0050                                          const Handle(Geom_BSplineCurve)& C3,
0051                                          const Handle(Geom_BSplineCurve)& C4,
0052                                          const GeomFill_FillingStyle      Type);
0053 
0054   Standard_EXPORT GeomFill_BSplineCurves(const Handle(Geom_BSplineCurve)& C1,
0055                                          const Handle(Geom_BSplineCurve)& C2,
0056                                          const Handle(Geom_BSplineCurve)& C3,
0057                                          const GeomFill_FillingStyle      Type);
0058 
0059   //! Constructs a framework for building a BSpline surface from either
0060   //! -   the four contiguous BSpline curves, C1, C2, C3 and C4, or
0061   //! -   the three contiguous BSpline curves, C1, C2 and C3, or
0062   //! -   the two contiguous BSpline curves, C1 and C2.
0063   //! The type of filling style Type to be used is one of:
0064   //! -   GeomFill_Stretch - the style with the flattest patch
0065   //! -   GeomFill_Coons - a rounded style of patch with
0066   //! less depth than that of Curved
0067   //! -   GeomFill_Curved - the style with the most rounded
0068   //! patch.Constructs a framework for building a BSpline
0069   //! surface common to the two BSpline curves, C1 and C2.
0070   //! Exceptions
0071   //! Standard_ConstructionError if the curves are not contiguous.
0072   Standard_EXPORT GeomFill_BSplineCurves(const Handle(Geom_BSplineCurve)& C1,
0073                                          const Handle(Geom_BSplineCurve)& C2,
0074                                          const GeomFill_FillingStyle      Type);
0075 
0076   //! if the curves cannot be joined
0077   Standard_EXPORT void Init(const Handle(Geom_BSplineCurve)& C1,
0078                             const Handle(Geom_BSplineCurve)& C2,
0079                             const Handle(Geom_BSplineCurve)& C3,
0080                             const Handle(Geom_BSplineCurve)& C4,
0081                             const GeomFill_FillingStyle      Type);
0082 
0083   //! if the curves cannot be joined
0084   Standard_EXPORT void Init(const Handle(Geom_BSplineCurve)& C1,
0085                             const Handle(Geom_BSplineCurve)& C2,
0086                             const Handle(Geom_BSplineCurve)& C3,
0087                             const GeomFill_FillingStyle      Type);
0088 
0089   //! Initializes or reinitializes this algorithm with two, three,
0090   //! or four curves - C1, C2, C3, and C4 - and Type, one
0091   //! of the following filling styles:
0092   //! -   GeomFill_Stretch - the style with the flattest patch
0093   //! -   GeomFill_Coons - a rounded style of patch with
0094   //! less depth than that of Curved
0095   //! -   GeomFill_Curved - the style with the most rounded patch.
0096   //! Exceptions
0097   //! Standard_ConstructionError if the curves are not contiguous.
0098   Standard_EXPORT void Init(const Handle(Geom_BSplineCurve)& C1,
0099                             const Handle(Geom_BSplineCurve)& C2,
0100                             const GeomFill_FillingStyle      Type);
0101 
0102   //! Returns the BSpline surface Surface resulting from
0103   //! the computation performed by this algorithm.
0104   const Handle(Geom_BSplineSurface)& Surface() const;
0105 
0106 protected:
0107 private:
0108   Handle(Geom_BSplineSurface) mySurface;
0109 };
0110 
0111 #include <GeomFill_BSplineCurves.lxx>
0112 
0113 #endif // _GeomFill_BSplineCurves_HeaderFile