summaryrefslogtreecommitdiff
path: root/inc/BRepGProp_Face.hxx
blob: 9a85ee4b430f4c37b806b0bfd1dbfcc7514acbb2 (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// 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 _BRepGProp_Face_HeaderFile
#define _BRepGProp_Face_HeaderFile

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

#ifndef _BRepAdaptor_Surface_HeaderFile
#include <BRepAdaptor_Surface.hxx>
#endif
#ifndef _Geom2dAdaptor_Curve_HeaderFile
#include <Geom2dAdaptor_Curve.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _gp_Pnt2d_HeaderFile
#include <gp_Pnt2d.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _GeomAbs_IsoType_HeaderFile
#include <GeomAbs_IsoType.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfReal_HeaderFile
#include <Handle_TColStd_HArray1OfReal.hxx>
#endif
class TopoDS_Face;
class TColStd_Array1OfReal;
class gp_Pnt;
class gp_Vec;
class TopoDS_Edge;
class gp_Pnt2d;
class gp_Vec2d;
class TColStd_HArray1OfReal;



class BRepGProp_Face  {
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); 
  }

  //! Constructor. Initializes the object with a flag IsUseSpan <br>
//!          that says if it is necessary to define spans on a face. <br>
//!          This option has an effect only for BSpline faces. Spans <br>
//!          are returned by the methods GetUKnots and GetTKnots. <br>
      BRepGProp_Face(const Standard_Boolean IsUseSpan = Standard_False);
  //! Constructor. Initializes the object with the face and the <br>
//!          flag IsUseSpan that says if it is necessary to define <br>
//!          spans on a face. This option has an effect only for <br>
//!          BSpline faces. Spans are returned by the methods GetUKnots <br>
//!          and GetTKnots. <br>
      BRepGProp_Face(const TopoDS_Face& F,const Standard_Boolean IsUseSpan = Standard_False);
  
  Standard_EXPORT     void Load(const TopoDS_Face& F) ;
  
  Standard_EXPORT     Standard_Integer VIntegrationOrder() const;
  //! Returns Standard_True if the face is not trimmed. <br>
        Standard_Boolean NaturalRestriction() const;
  //! Returns the value of the boundary curve of the face. <br>
        gp_Pnt2d Value2d(const Standard_Real U) const;
  
  Standard_EXPORT     Standard_Integer SIntOrder(const Standard_Real Eps) const;
  
  Standard_EXPORT     Standard_Integer SVIntSubs() const;
  
  Standard_EXPORT     Standard_Integer SUIntSubs() const;
  
  Standard_EXPORT     void UKnots(TColStd_Array1OfReal& Knots) const;
  
  Standard_EXPORT     void VKnots(TColStd_Array1OfReal& Knots) const;
  
  Standard_EXPORT     Standard_Integer LIntOrder(const Standard_Real Eps) const;
  
  Standard_EXPORT     Standard_Integer LIntSubs() const;
  
  Standard_EXPORT     void LKnots(TColStd_Array1OfReal& Knots) const;
  //! Returns the number of points required to do the <br>
//!          integration in the U parametric direction with <br>
//!          a good accuracy. <br>
  Standard_EXPORT     Standard_Integer UIntegrationOrder() const;
  //! Returns the parametric bounds of the Face. <br>
  Standard_EXPORT     void Bounds(Standard_Real& U1,Standard_Real& U2,Standard_Real& V1,Standard_Real& V2) const;
  //! Computes the point of parameter U, V on the Face <S> and <br>
//!          the normal to the face at this point. <br>
  Standard_EXPORT     void Normal(const Standard_Real U,const Standard_Real V,gp_Pnt& P,gp_Vec& VNor) const;
  //! Loading the boundary arc. <br>
  Standard_EXPORT     void Load(const TopoDS_Edge& E) ;
  //! Returns the parametric value of the start point of <br>
//!          the current arc of curve. <br>
        Standard_Real FirstParameter() const;
  //! Returns the parametric value of the end point of <br>
//!          the current arc of curve. <br>
        Standard_Real LastParameter() const;
  //! Returns the number of points required to do the <br>
//!          integration along the parameter of curve. <br>
  Standard_EXPORT     Standard_Integer IntegrationOrder() const;
  //! Returns the point of parameter U and the first derivative <br>
//!          at this point of a boundary curve. <br>
        void D12d(const Standard_Real U,gp_Pnt2d& P,gp_Vec2d& V1) const;
  //! Loading the boundary arc. This arc is either a top, bottom, <br>
//!          left or right bound of a UV rectangle in which the <br>
//!          parameters of surface are defined. <br>
//!          If IsFirstParam is equal to Standard_True, the face is <br>
//!          initialized by either left of bottom bound. Otherwise it is <br>
//!          initialized by the top or right one. <br>
//!          If theIsoType is equal to GeomAbs_IsoU, the face is <br>
//!          initialized with either left or right bound. Otherwise - <br>
//!          with either top or bottom one. <br>
  Standard_EXPORT     void Load(const Standard_Boolean IsFirstParam,const GeomAbs_IsoType theIsoType) ;
  //! Returns an array of U knots of the face. The first and last <br>
//!          elements of the array will be theUMin and theUMax. The <br>
//!          middle elements will be the U Knots of the face greater <br>
//!          then theUMin and lower then theUMax in increasing order. <br>
//!          If the face is not a BSpline, the array initialized with <br>
//!          theUMin and theUMax only. <br>
  Standard_EXPORT     void GetUKnots(const Standard_Real theUMin,const Standard_Real theUMax,Handle(TColStd_HArray1OfReal)& theUKnots) const;
  //! Returns an array of combination of T knots of the arc and <br>
//!          V knots of the face. The first and last elements of the <br>
//!          array will be theTMin and theTMax. The middle elements will <br>
//!          be the Knots of the arc and the values of parameters of <br>
//!          arc on which the value points have V coordinates close to V <br>
//!          knots of face. All the parameter will be greater then <br>
//!          theTMin and lower then theTMax in increasing order. <br>
//!          If the face is not a BSpline, the array initialized with <br>
//!          theTMin and theTMax only. <br>
  Standard_EXPORT     void GetTKnots(const Standard_Real theTMin,const Standard_Real theTMax,Handle(TColStd_HArray1OfReal)& theTKnots) const;





protected:





private:



BRepAdaptor_Surface mySurface;
Geom2dAdaptor_Curve myCurve;
Standard_Boolean mySReverse;
Standard_Boolean myIsUseSpan;


};


#include <BRepGProp_Face.lxx>



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


#endif