|
||||
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_BezierCurves_HeaderFile 0018 #define _GeomFill_BezierCurves_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_BezierSurface; 0026 class Geom_BezierCurve; 0027 0028 0029 //! This class provides an algorithm for constructing a Bezier surface filled from 0030 //! contiguous Bezier curves which form its boundaries. 0031 //! The algorithm accepts two, three or four Bezier curves 0032 //! as the boundaries of the target surface. 0033 //! A range of filling styles - more or less rounded, more or less flat - is available. 0034 //! A BezierCurves 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_BezierCurves 0041 { 0042 public: 0043 0044 DEFINE_STANDARD_ALLOC 0045 0046 0047 //! Constructs an empty framework for building a Bezier 0048 //! surface from contiguous Bezier curves. 0049 //! You use the Init function to define the boundaries of the surface. 0050 Standard_EXPORT GeomFill_BezierCurves(); 0051 0052 //! Constructs a framework for building a Bezier surface 0053 //! from the four contiguous Bezier curves, C1, C2, C3 and C4 0054 //! Raises Standard_ConstructionError if the curves are not contiguous. 0055 Standard_EXPORT GeomFill_BezierCurves(const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const Handle(Geom_BezierCurve)& C3, const Handle(Geom_BezierCurve)& C4, const GeomFill_FillingStyle Type); 0056 0057 //! Constructs a framework for building a Bezier surface 0058 //! from the three contiguous Bezier curves, C1, C2 and C3 0059 //! Raises Standard_ConstructionError if the curves are not contiguous. 0060 Standard_EXPORT GeomFill_BezierCurves(const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const Handle(Geom_BezierCurve)& C3, const GeomFill_FillingStyle Type); 0061 0062 //! Constructs a framework for building a Bezier surface 0063 //! from the two contiguous Bezier curves, C1 and C2 0064 //! Raises Standard_ConstructionError if the curves are not contiguous. 0065 Standard_EXPORT GeomFill_BezierCurves(const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const GeomFill_FillingStyle Type); 0066 0067 //! if the curves cannot be joined 0068 Standard_EXPORT void Init (const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const Handle(Geom_BezierCurve)& C3, const Handle(Geom_BezierCurve)& C4, const GeomFill_FillingStyle Type); 0069 0070 //! if the curves cannot be joined 0071 Standard_EXPORT void Init (const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const Handle(Geom_BezierCurve)& C3, const GeomFill_FillingStyle Type); 0072 0073 //! Initializes or reinitializes this algorithm with two, three, 0074 //! or four curves - C1, C2, C3, and C4 - and Type, one 0075 //! of the following filling styles: 0076 //! - GeomFill_Stretch - the style with the flattest patch 0077 //! - GeomFill_Coons - a rounded style of patch with 0078 //! less depth than that of Curved 0079 //! - GeomFill_Curved - the style with the most rounded patch. 0080 //! Exceptions 0081 //! Standard_ConstructionError if the curves are not contiguous. 0082 Standard_EXPORT void Init (const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const GeomFill_FillingStyle Type); 0083 0084 //! Returns the Bezier surface resulting from the 0085 //! computation performed by this algorithm. 0086 const Handle(Geom_BezierSurface)& Surface() const; 0087 0088 0089 0090 0091 protected: 0092 0093 0094 0095 0096 0097 private: 0098 0099 0100 0101 Handle(Geom_BezierSurface) mySurface; 0102 0103 0104 }; 0105 0106 0107 #include <GeomFill_BezierCurves.lxx> 0108 0109 0110 0111 0112 0113 #endif // _GeomFill_BezierCurves_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |