summaryrefslogtreecommitdiff
path: root/inc/GeomFill_BezierCurves.hxx
blob: 9f091faa8355dd963ad92295e3da8074aa9d49e8 (plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
// 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

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Handle_Geom_BezierSurface_HeaderFile
#include <Handle_Geom_BezierSurface.hxx>
#endif
#ifndef _Handle_Geom_BezierCurve_HeaderFile
#include <Handle_Geom_BezierCurve.hxx>
#endif
#ifndef _GeomFill_FillingStyle_HeaderFile
#include <GeomFill_FillingStyle.hxx>
#endif
class Geom_BezierSurface;
class Standard_ConstructionError;
class Geom_BezierCurve;


//! This class provides an algorithm for constructing a Bezier surface filled from <br>
//! contiguous Bezier curves which form its boundaries. <br>
//! The algorithm accepts two, three or four Bezier curves <br>
//! as the boundaries of the target surface. <br>
//! A range of filling styles - more or less rounded, more or less flat - is available. <br>
//! A BezierCurves object provides a framework for: <br>
//! -   defining the boundaries, and the filling style of the surface <br>
//! -   implementing the construction algorithm <br>
//! -   consulting the result. <br>
//! Warning <br>
//! Some problems may show up with rational curves. <br>
class GeomFill_BezierCurves  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Constructs an empty framework for building a Bezier <br>
//! surface from contiguous Bezier curves. <br>
//! You use the Init function to define the boundaries of the surface. <br>
  Standard_EXPORT   GeomFill_BezierCurves();
  //! Constructs a framework for building a Bezier surface <br>
//! from the four contiguous Bezier curves, C1, C2, C3 and C4 <br>
//! Raises Standard_ConstructionError if the curves are not contiguous. <br>
  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 <br>
//! from the three contiguous Bezier curves, C1, C2 and C3 <br>
//! Raises Standard_ConstructionError if the curves are not contiguous. <br>
  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 <br>
//! from the two contiguous Bezier curves, C1 and C2 <br>
//! Raises Standard_ConstructionError if the curves are not contiguous. <br>
  Standard_EXPORT   GeomFill_BezierCurves(const Handle(Geom_BezierCurve)& C1,const Handle(Geom_BezierCurve)& C2,const GeomFill_FillingStyle Type);
  //! if the curves cannot be joined <br>
  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 <br>
  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, <br>
//! or four curves - C1, C2, C3, and C4 - and Type, one <br>
//! of the following filling styles: <br>
//! -   GeomFill_Stretch - the style with the flattest patch <br>
//! -   GeomFill_Coons - a rounded style of patch with <br>
//!   less depth than that of Curved <br>
//! -   GeomFill_Curved - the style with the most rounded patch. <br>
//!  Exceptions <br>
//! Standard_ConstructionError if the curves are not contiguous. <br>
  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 <br>
//! computation performed by this algorithm. <br>
       const Handle_Geom_BezierSurface& Surface() const;





protected:





private:



Handle_Geom_BezierSurface mySurface;


};


#include <GeomFill_BezierCurves.lxx>



// other Inline functions and methods (like "C++: function call" methods)


#endif