Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2005-01-13 06:42:53 +0300
committerStephen Swaney <sswaney@centurytel.net>2005-01-13 06:42:53 +0300
commitdf1acca4c5bdc47d62bee1369e28c378cf68fcc6 (patch)
treeb0566f38f62dc0e20c9c2a90446904446cd99c84 /source/blender/python/api2_2x/doc/Curve.py
parent9f43accdb2319b567551f652a6966a5fa56f086b (diff)
New methods: Curve.isCyclic(), CurNurb.isCyclic() for checking if curve is cyclic ( closed ). Both methods are boolean.
Patch contributed by Toni Alatalo. Thanks.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Curve.py')
-rw-r--r--source/blender/python/api2_2x/doc/Curve.py23
1 files changed, 20 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/doc/Curve.py b/source/blender/python/api2_2x/doc/Curve.py
index 7cbffa8e012..63df00a2256 100644
--- a/source/blender/python/api2_2x/doc/Curve.py
+++ b/source/blender/python/api2_2x/doc/Curve.py
@@ -226,7 +226,7 @@ class Curve:
def getControlPoint(numcurve,numpoint):
"""
- Get the curve's control point value.
+ Get the curve's control point value. The numpoint arg is an index into the list of points and starts with 0.
@type numcurve: int
@type numpoint: int
@rtype: list of floats
@@ -237,7 +237,7 @@ class Curve:
def setControlPoint( numcurve, numpoint, controlpoint):
"""
- Set the Curve's controlpoint value.
+ Set the Curve's controlpoint value. The numpoint arg is an index into the list of points and starts with 0.
@rtype: PyNone
@type numcurve: int
@type numpoint: int
@@ -333,12 +333,22 @@ class Curve:
"""
method used to determine whether a CurNurb is of type Bezier or of type Nurb.
@rtype: integer
- @return: Zero of curve is type Bezier, One if curve is of type Nurb.
+ @return: Zero if curve is type Bezier, One if curve is of type Nurb.
@type curve_num: integer
@param curve_num: zero-based index into list of curves in this Curve.
@raise AttributeError: throws exception if curve_num is out of range.
"""
+ def isCyclic( curve_num ):
+ """
+ Boolean method checks whether the curve is cyclic (closed) or not.
+
+ @rtype: boolean
+ @return: True if is cyclic, False if not
+ @type curve_num: integer
+ @param curve_num: zero-based index into list of curves in this Curve
+ @raise AttributeError: throws exception if curve_num is out of range.
+ """
class CurNurb:
"""
@@ -384,5 +394,12 @@ class CurNurb:
@return: True or False
"""
+ def isCyclic():
+ """
+ Boolean method checks whether a CurNurb is cyclic (a closed curve) or not.
+ @rtype: boolean
+ @return: True or False
+ """
+