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