Difference between revisions of "ShapePath"
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
! scope="col" class="unsortable" | Description | ! scope="col" class="unsortable" | Description | ||
|- | |- | ||
− | | | + | |clone() |
− | | | + | |returns a copy of the path |
|- | |- | ||
− | | | + | |evalDerivative(t) |
− | | | + | |evaluate the [[Point3D|derivative]] at ''t'' |
|- | |- | ||
− | | | + | |evalPoint(t) |
− | | | + | |evaluate the [[Point3D|point]] at ''t'' |
+ | |- | ||
+ | |interpolate(path, t) | ||
+ | |generate and return a new ShapePath by interpolating with <tt>path</tt> using ''t'' | ||
+ | |- | ||
+ | |selected(index) | ||
+ | |True if the control point at index is selected | ||
+ | |- | ||
+ | |transform([[Matrix]], selected=False) | ||
+ | |transform all (or just the selected) points by the [[Matrix]] | ||
|} | |} | ||
Revision as of 20:44, 20 November 2012
A ShapePath represents one key of spline data for a shape.
Attributes
Read-only unless otherwise noted.
Name | Description |
---|---|
bounds | the bounding box |
clockwise | True if clock-wise |
closed | True if closed (read/write) |
flags | a List of Integers representing the flags for each control point |
numPoints | the number of control points |
points | a List of tuples containing the control point information |
range | a Tuple (start, end) with the t-value range for this shape type |
type | the Shape Type |
Methods
Name | Description |
---|---|
clone() | returns a copy of the path |
evalDerivative(t) | evaluate the derivative at t |
evalPoint(t) | evaluate the point at t |
interpolate(path, t) | generate and return a new ShapePath by interpolating with path using t |
selected(index) | True if the control point at index is selected |
transform(Matrix, selected=False) | transform all (or just the selected) points by the Matrix |
Constants
Control Point Flags
Name | Description |
---|---|
Flag_Selected | The control point is selected |
Flag_Tagged | The control point is tagged |