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="Geom2dBezierCurve"
7
TwinPointer="Geom2dBezierCurve"
8
PythonName="Part.Geom2d.BezierCurve2d"
9
FatherInclude="Mod/Part/App/Geom2d/Curve2dPy.h"
10
Include="Mod/Part/App/Geometry2d.h"
12
FatherNamespace="Part"
15
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net"/>
16
<UserDocu>Describes a rational or non-rational Bezier curve in 2d space:
17
-- a non-rational Bezier curve is defined by a table of poles (also called control points)
18
-- a rational Bezier curve is defined by a table of poles with varying weights</UserDocu>
20
<Attribute Name="Degree" ReadOnly="true">
22
<UserDocu>Returns the polynomial degree of this Bezier curve,
23
which is equal to the number of poles minus 1.</UserDocu>
25
<Parameter Name="Degree" Type="Long"/>
27
<Attribute Name="MaxDegree" ReadOnly="true">
29
<UserDocu>Returns the value of the maximum polynomial degree of any
30
Bezier curve curve. This value is 25.</UserDocu>
32
<Parameter Name="MaxDegree" Type="Long"/>
34
<Attribute Name="NbPoles" ReadOnly="true">
36
<UserDocu>Returns the number of poles of this Bezier curve.</UserDocu>
38
<Parameter Name="NbPoles" Type="Long"/>
40
<Attribute Name="StartPoint" ReadOnly="true">
42
<UserDocu>Returns the start point of this Bezier curve.</UserDocu>
44
<Parameter Name="StartPoint" Type="Object"/>
46
<Attribute Name="EndPoint" ReadOnly="true">
48
<UserDocu>Returns the end point of this Bezier curve.</UserDocu>
50
<Parameter Name="EndPoint" Type="Object"/>
52
<Methode Name="isRational">
54
<UserDocu>Returns false if the weights of all the poles of this Bezier curve are equal.</UserDocu>
57
<Methode Name="isPeriodic">
59
<UserDocu>Returns false.</UserDocu>
62
<Methode Name="isClosed">
64
<UserDocu>Returns true if the distance between the start point and end point of
65
this Bezier curve is less than or equal to gp::Resolution().</UserDocu>
68
<Methode Name="increase">
70
<UserDocu>increase(Int=Degree)
71
Increases the degree of this Bezier curve to Degree.
72
As a result, the poles and weights tables are modified.</UserDocu>
75
<Methode Name="insertPoleAfter">
77
<UserDocu>Inserts after the pole of index.</UserDocu>
80
<Methode Name="insertPoleBefore">
82
<UserDocu>Inserts before the pole of index.</UserDocu>
85
<Methode Name="removePole">
87
<UserDocu>Removes the pole of index Index from the table of poles of this Bezier curve.
88
If this Bezier curve is rational, it can become non-rational.</UserDocu>
91
<Methode Name="segment">
93
<UserDocu>Modifies this Bezier curve by segmenting it.</UserDocu>
96
<Methode Name="setPole">
98
<UserDocu>Set a pole of the Bezier curve.</UserDocu>
101
<Methode Name="getPole">
103
<UserDocu>Get a pole of the Bezier curve.</UserDocu>
106
<Methode Name="getPoles">
108
<UserDocu>Get all poles of the Bezier curve.</UserDocu>
111
<Methode Name="setPoles">
113
<UserDocu>Set the poles of the Bezier curve.</UserDocu>
116
<Methode Name="setWeight">
118
<UserDocu>Set a weight of the Bezier curve.</UserDocu>
121
<Methode Name="getWeight">
123
<UserDocu>Get a weight of the Bezier curve.</UserDocu>
126
<Methode Name="getWeights">
128
<UserDocu>Get all weights of the Bezier curve.</UserDocu>
131
<Methode Name="getResolution" Const="true">
133
<UserDocu>Computes for this Bezier curve the parametric tolerance (UTolerance)
134
for a given 3D tolerance (Tolerance3D).
135
If f(t) is the equation of this Bezier curve, the parametric tolerance
137
|t1-t0| < UTolerance =""==> |f(t1)-f(t0)| < Tolerance3D</UserDocu>