1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
6
Twin="GeomBezierSurface"
7
TwinPointer="GeomBezierSurface"
8
PythonName="Part.BezierSurface"
9
FatherInclude="Mod/Part/App/GeometrySurfacePy.h"
10
Include="Mod/Part/App/Geometry.h"
11
Father="GeometrySurfacePy"
12
FatherNamespace="Part"
15
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net"/>
16
<UserDocu>Describes a rational or non-rational Bezier surface
17
-- A non-rational Bezier surface is defined by a table of poles (also known as control points).
18
-- A rational Bezier surface is defined by a table of poles with varying associated weights.</UserDocu>
20
<Attribute Name="UDegree" ReadOnly="true">
22
<UserDocu>Returns the polynomial degree in u direction of this Bezier surface,
23
which is equal to the number of poles minus 1.</UserDocu>
25
<Parameter Name="UDegree" Type="Long"/>
27
<Attribute Name="VDegree" ReadOnly="true">
29
<UserDocu>Returns the polynomial degree in v direction of this Bezier surface,
30
which is equal to the number of poles minus 1.</UserDocu>
32
<Parameter Name="VDegree" Type="Long"/>
34
<Attribute Name="MaxDegree" ReadOnly="true">
36
<UserDocu>Returns the value of the maximum polynomial degree of any
37
Bezier surface. This value is 25.</UserDocu>
39
<Parameter Name="MaxDegree" Type="Long"/>
41
<Attribute Name="NbUPoles" ReadOnly="true">
43
<UserDocu>Returns the number of poles in u direction of this Bezier surface.</UserDocu>
45
<Parameter Name="NbUPoles" Type="Long"/>
47
<Attribute Name="NbVPoles" ReadOnly="true">
49
<UserDocu>Returns the number of poles in v direction of this Bezier surface.</UserDocu>
51
<Parameter Name="NbVPoles" Type="Long"/>
53
<Methode Name="bounds" Const="true">
55
<UserDocu>Returns the parametric bounds (U1, U2, V1, V2) of this Bezier surface.</UserDocu>
58
<Methode Name="isURational" Const="true">
60
<UserDocu>Returns false if the equation of this Bezier surface is polynomial
61
(e.g. non-rational) in the u or v parametric direction.
62
In other words, returns false if for each row of poles, the associated
63
weights are identical</UserDocu>
66
<Methode Name="isVRational" Const="true">
68
<UserDocu>Returns false if the equation of this Bezier surface is polynomial
69
(e.g. non-rational) in the u or v parametric direction.
70
In other words, returns false if for each column of poles, the associated
71
weights are identical</UserDocu>
74
<Methode Name="isUPeriodic" Const="true">
76
<UserDocu>Returns false.</UserDocu>
79
<Methode Name="isVPeriodic" Const="true">
81
<UserDocu>Returns false.</UserDocu>
84
<Methode Name="isUClosed" Const="true">
86
<UserDocu>Checks if this surface is closed in the u parametric direction.
87
Returns true if, in the table of poles the first row and the last
88
row are identical.</UserDocu>
91
<Methode Name="isVClosed" Const="true">
93
<UserDocu>Checks if this surface is closed in the v parametric direction.
94
Returns true if, in the table of poles the first column and the
95
last column are identical.</UserDocu>
98
<Methode Name="increase">
100
<UserDocu>increase(Int=DegreeU,Int=DegreeV)
101
Increases the degree of this Bezier surface in the two
102
parametric directions.</UserDocu>
105
<Methode Name="insertPoleColAfter">
107
<UserDocu>Inserts into the table of poles of this surface, after the column
109
If this Bezier surface is non-rational, it can become rational if
110
the weights associated with the new poles are different from each
111
other, or collectively different from the existing weights in the
115
<Methode Name="insertPoleRowAfter">
117
<UserDocu>Inserts into the table of poles of this surface, after the row
119
If this Bezier surface is non-rational, it can become rational if
120
the weights associated with the new poles are different from each
121
other, or collectively different from the existing weights in the
125
<Methode Name="insertPoleColBefore">
127
<UserDocu>Inserts into the table of poles of this surface, before the column
129
If this Bezier surface is non-rational, it can become rational if
130
the weights associated with the new poles are different from each
131
other, or collectively different from the existing weights in the
135
<Methode Name="insertPoleRowBefore">
137
<UserDocu>Inserts into the table of poles of this surface, before the row
139
If this Bezier surface is non-rational, it can become rational if
140
the weights associated with the new poles are different from each
141
other, or collectively different from the existing weights in the
145
<Methode Name="removePoleCol">
147
<UserDocu>removePoleRow(int=VIndex)
148
Removes the column of poles of index VIndex from the table of
149
poles of this Bezier surface.
150
If this Bezier curve is rational, it can become non-rational.</UserDocu>
153
<Methode Name="removePoleRow">
155
<UserDocu>removePoleRow(int=UIndex)
156
Removes the row of poles of index UIndex from the table of
157
poles of this Bezier surface.
158
If this Bezier curve is rational, it can become non-rational.</UserDocu>
161
<Methode Name="segment">
163
<UserDocu>segment(double=U1,double=U2,double=V1,double=V2)
164
Modifies this Bezier surface by segmenting it between U1 and U2
165
in the u parametric direction, and between V1 and V2 in the v
166
parametric direction.
167
U1, U2, V1, and V2 can be outside the bounds of this surface.
169
-- U1 and U2 isoparametric Bezier curves, segmented between
170
V1 and V2, become the two bounds of the surface in the v
171
parametric direction (0. and 1. u isoparametric curves).
172
-- V1 and V2 isoparametric Bezier curves, segmented between
173
U1 and U2, become the two bounds of the surface in the u
174
parametric direction (0. and 1. v isoparametric curves).
176
The poles and weights tables are modified, but the degree of
177
this surface in the u and v parametric directions does not
178
change.U1 can be greater than U2, and V1 can be greater than V2.
179
In these cases, the corresponding parametric direction is inverted.
180
The orientation of the surface is inverted if one (and only one)
181
parametric direction is inverted.</UserDocu>
184
<Methode Name="setPole">
186
<UserDocu>Set a pole of the Bezier surface.</UserDocu>
189
<Methode Name="setPoleCol">
191
<UserDocu>Set the column of poles of the Bezier surface.</UserDocu>
194
<Methode Name="setPoleRow">
196
<UserDocu>Set the row of poles of the Bezier surface.</UserDocu>
199
<Methode Name="getPole" Const="true">
201
<UserDocu>Get a pole of index (UIndex,VIndex) of the Bezier surface.</UserDocu>
204
<Methode Name="getPoles" Const="true">
206
<UserDocu>Get all poles of the Bezier surface.</UserDocu>
209
<Methode Name="setWeight">
211
<UserDocu>Set the weight of pole of the index (UIndex, VIndex)
212
for the Bezier surface.</UserDocu>
215
<Methode Name="setWeightCol">
217
<UserDocu>Set the weights of the poles in the column of poles
218
of index VIndex of the Bezier surface.</UserDocu>
221
<Methode Name="setWeightRow">
223
<UserDocu>Set the weights of the poles in the row of poles
224
of index UIndex of the Bezier surface.</UserDocu>
227
<Methode Name="getWeight" Const="true">
229
<UserDocu>Get a weight of the pole of index (UIndex,VIndex)
230
of the Bezier surface.</UserDocu>
233
<Methode Name="getWeights" Const="true">
235
<UserDocu>Get all weights of the Bezier surface.</UserDocu>
238
<Methode Name="getResolution" Const="true">
240
<UserDocu>Computes two tolerance values for this Bezier surface, based on the
241
given tolerance in 3D space Tolerance3D. The tolerances computed are:
242
-- UTolerance in the u parametric direction and
243
-- VTolerance in the v parametric direction.
245
If f(u,v) is the equation of this Bezier surface, UTolerance and VTolerance
247
|u1 - u0| < UTolerance
248
|v1 - v0| < VTolerance
249
====> ||f(u1, v1) - f(u2, v2)|| < Tolerance3D</UserDocu>
252
<Methode Name="exchangeUV">
254
<UserDocu>Exchanges the u and v parametric directions on this Bezier surface.
256
-- the poles and weights tables are transposed,
257
-- degrees, rational characteristics and so on are exchanged between
258
the two parametric directions, and
259
-- the orientation of the surface is reversed.</UserDocu>