setControlPoint() had incorrect argument list.

also some minor reformatting.
This commit is contained in:
Stephen Swaney
2003-11-06 18:17:05 +00:00
parent b9cdf97e19
commit e2e6bc37a9

View File

@@ -71,14 +71,14 @@ class Curve:
@param name: The new name. @param name: The new name.
""" """
def getPathlen(): def getPathLen():
""" """
Get this Curve's path length. Get this Curve's path length.
@rtype: int @rtype: int
@return: the path length. @return: the path length.
""" """
def setPathlen(len): def setPathLen(len):
""" """
Set this Curve's path length. Set this Curve's path length.
@rtype: PyNone @rtype: PyNone
@@ -105,9 +105,12 @@ class Curve:
""" """
Get the Curve mode value. Get the Curve mode value.
The mode of the curve is a combination of 4 parameters. The mode of the curve is a combination of 4 parameters.
Bits 0,1,2 : "Back", "Front" and "3D". - Bit 0 : "Back" is set
Bit 3 : "CurvePath" is set. - Bit 1 : "Front" is set
Bit 4 : "CurveFollow" is set. - Bit 2 : "3D" is set
- Bit 3 : "CurvePath" is set.
- Bit 4 : "CurveFollow" is set.
@rtype: int @rtype: int
""" """
@@ -116,7 +119,7 @@ class Curve:
Set the Curve mode value. Set the Curve mode value.
@rtype: PyNone @rtype: PyNone
@type val: int @type val: int
@param val : The new Curve's mode value. @param val : The new Curve's mode value. See L{getMode} for the meaning of the bit fields.
""" """
def getBevresol(): def getBevresol():
@@ -203,24 +206,28 @@ class Curve:
@param ext2: The new Curve's ext2 value. @param ext2: The new Curve's ext2 value.
""" """
def getControlpoint(numcurve,numpoint): def getControlPoint(numcurve,numpoint):
""" """
Get the curve's control point value. Get the curve's control point value.
@type numcurve: int @type numcurve: int
@type numpoint: int @type numpoint: int
@rtype: list @rtype: list
@return: depends upon the curve's type.\n @return: depends upon the curve's type.
type bezier : a list of three coordinates\n - type bezier : a list of three coordinates
type nurbs : a list of nine coordinates. - type nurbs : a list of nine coordinates.
""" """
def setControlpoint(controlpoint): def setControlPoint( numcurve, numpoint, controlpoint):
""" """
Set the Curve's controlpoint value. Set the Curve's controlpoint value.
@rtype: PyNone @rtype: PyNone
@type numcurve: int
@type numpoint: int
@type controlpoint: list @type controlpoint: list
@param controlpoint: The new Curve's controlpoint value.\n @param numcurve: index for spline in Curve, starting from 0
see getControlpoint for the length of the list. @param numpoint: index for point in spline, starting from 0
@param controlpoint: The new controlpoint value.
See L{getControlPoint} for the length of the list.
""" """
def getLoc(): def getLoc():