1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _GeomFill_BezierCurves_HeaderFile
#define _GeomFill_BezierCurves_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <Handle_Geom_BezierSurface.hxx>
#include <Handle_Geom_BezierCurve.hxx>
#include <GeomFill_FillingStyle.hxx>
class Geom_BezierSurface;
class Standard_ConstructionError;
class Geom_BezierCurve;
//! This class provides an algorithm for constructing a Bezier surface filled from
//! contiguous Bezier curves which form its boundaries.
//! The algorithm accepts two, three or four Bezier curves
//! as the boundaries of the target surface.
//! A range of filling styles - more or less rounded, more or less flat - is available.
//! A BezierCurves object provides a framework for:
//! - defining the boundaries, and the filling style of the surface
//! - implementing the construction algorithm
//! - consulting the result.
//! Warning
//! Some problems may show up with rational curves.
class GeomFill_BezierCurves
{
public:
DEFINE_STANDARD_ALLOC
//! Constructs an empty framework for building a Bezier
//! surface from contiguous Bezier curves.
//! You use the Init function to define the boundaries of the surface.
Standard_EXPORT GeomFill_BezierCurves();
//! Constructs a framework for building a Bezier surface
//! from the four contiguous Bezier curves, C1, C2, C3 and C4
//! Raises Standard_ConstructionError if the curves are not contiguous.
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);
//! Constructs a framework for building a Bezier surface
//! from the three contiguous Bezier curves, C1, C2 and C3
//! Raises Standard_ConstructionError if the curves are not contiguous.
Standard_EXPORT GeomFill_BezierCurves(const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const Handle(Geom_BezierCurve)& C3, const GeomFill_FillingStyle Type);
//! Constructs a framework for building a Bezier surface
//! from the two contiguous Bezier curves, C1 and C2
//! Raises Standard_ConstructionError if the curves are not contiguous.
Standard_EXPORT GeomFill_BezierCurves(const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const GeomFill_FillingStyle Type);
//! if the curves cannot be joined
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) ;
//! if the curves cannot be joined
Standard_EXPORT void Init (const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const Handle(Geom_BezierCurve)& C3, const GeomFill_FillingStyle Type) ;
//! Initializes or reinitializes this algorithm with two, three,
//! or four curves - C1, C2, C3, and C4 - and Type, one
//! of the following filling styles:
//! - GeomFill_Stretch - the style with the flattest patch
//! - GeomFill_Coons - a rounded style of patch with
//! less depth than that of Curved
//! - GeomFill_Curved - the style with the most rounded patch.
//! Exceptions
//! Standard_ConstructionError if the curves are not contiguous.
Standard_EXPORT void Init (const Handle(Geom_BezierCurve)& C1, const Handle(Geom_BezierCurve)& C2, const GeomFill_FillingStyle Type) ;
//! Returns the Bezier surface resulting from the
//! computation performed by this algorithm.
const Handle(Geom_BezierSurface)& Surface() const;
protected:
private:
Handle(Geom_BezierSurface) mySurface;
};
#include <GeomFill_BezierCurves.lxx>
#endif // _GeomFill_BezierCurves_HeaderFile
|