Module BezTriple :: Class BezTriple
[frames | no frames]

Class BezTriple


The BezTriple object

This object gives access to generic data from all BezTriple objects in Blender.
Method Summary
list of floats getPoints()
Returns the x,y coordinates of the Bezier knot point (deprecated).
list consisting of 3 lists of 3 floats getTriple()
Returns the x,y,z coordinates for each of the three points that make up a BezierTriple (deprecated).
None setPoints(newval)
Sets the x,y coordinates of the Bezier knot point (deprecated).

Instance Variable Summary
  handleTypes: the types of the point's two handles.
int hide: the visibility status of the knot.
list of two floats pt: the [x,y] coordinates for knot point of this BezTriple.
float radius: the radius of this point (used for tapering bevels)
list of three ints selects: the select status for [handle, knot, handle].
float tilt: the tilt/alpha value for the point
list of points vec: a list of the 3 points [ handle, knot, handle ] that comprise a BezTriple, with each point composed of a list [x,y,z] of floats.
float weight: the weight assigned to the control point.

Method Details

getPoints()

Returns the x,y coordinates of the Bezier knot point (deprecated). See the BezTriple.pt attribute.
Returns:
list of the x and y coordinates of the Bezier point.
           (type=list of floats)

getTriple()

Returns the x,y,z coordinates for each of the three points that make up a BezierTriple (deprecated). See the BezTriple.vec attribute.
Returns:
handle1, knot, handle2
           (type=list consisting of 3 lists of 3 floats)

setPoints(newval)

Sets the x,y coordinates of the Bezier knot point (deprecated). See the BezTriple.pt attribute.
Parameters:
newval - the x and y coordinates of the new Bezier point.
           (type=tuple of 2 floats)
Returns:
None
           (type=None)

Instance Variable Details

handleTypes

the types of the point's two handles. See HandleTypes for a complete description. @type handleTypes list of two ints

hide

the visibility status of the knot. Note: true/nonzero means not hidden. Note: primarily intended for curves; not a good idea to hide IPO control points.
Type:
int

pt

the [x,y] coordinates for knot point of this BezTriple. After changing coordinates of a Ipo curve, it is advisable to call IpoCurve.recalc() to update the curve.
Type:
list of two floats

radius

the radius of this point (used for tapering bevels)
Type:
float

selects

the select status for [handle, knot, handle]. True/nonzero if the point is selected.
Type:
list of three ints

tilt

the tilt/alpha value for the point
Type:
float

vec

a list of the 3 points [ handle, knot, handle ] that comprise a BezTriple, with each point composed of a list [x,y,z] of floats. The list looks like [ [H1x, H1y, H1z], [Px, Py, Pz], [H2x, H2y, H2z] ]. Example:
   # where bt is of type BezTriple
   #  and h1, p, and h2 are lists of 3 floats
   h1, p, h2 = bt.vec
Type:
list of points

weight

the weight assigned to the control point. Useful for softbodies and possibly others.
Type:
float

Generated by Epydoc 2.1 on Thu May 10 20:31:59 2007 http://epydoc.sf.net