More Curve Module features: access to the attributes flagU and flagV

in a  CurNurb object.
Contributed by Gergely Erdelyi (dyce).
This commit is contained in:
Stephen Swaney
2005-04-17 14:37:40 +00:00
parent 127abda43d
commit f919cf75f1
2 changed files with 142 additions and 1 deletions

View File

@@ -377,6 +377,9 @@ class CurNurb:
The CurNurb supports the python iterator protocol which means you can use a python for statement to access the points in a curve.
The CurNurb also supports the sequence protocol which means you can access the control points of a CurNurb using the [] operator.
@cvar flagU: The CurNurb knot flag U (0: uniform, 1: endpoints, 2: bezier)
@cvar flagV: The CurNurb knot flag V (0: uniform, 1: endpoints, 2: bezier)
"""
@@ -419,5 +422,36 @@ class CurNurb:
@return: True or False
"""
def getFlagU():
"""
Get the CurNurb knot flag U
@rtype: integer
@return: 0 - uniform, 1 - endpoints, 2 - bezier
"""
def setFlagU( value ):
"""
Set the CurNurb knot flag U (knots are recalculated automatically)
@type value: integer
@param value: CurNurb knot flag (0 - uniform, 1 - endpoints, 2 - bezier)
@rtype: PyNone
@return: PyNone
"""
def getFlagV():
"""
Get the CurNurb knot flag V
@rtype: integer
@return: 0 - uniform, 1 - endpoints, 2 - bezier
"""
def setFlagV( value ):
"""
Set the CurNurb knot flag V (knots are recalculated automatically)
@type value: integer
@param value: CurNurb knot flag (0 - uniform, 1 - endpoints, 2 - bezier)
@rtype: PyNone
@return: PyNone
"""