The PolyLine class has this constructor:
coords=[],closed=False) |
coords is a (npts,3) shaped array of coordinates of the subsequent vertices of the polyline (or a compatible data object). If closed == True, the polyline is closed by connecting the last point to the first. This does not change the vertex data.
PolyLine objects have the following methods:
) |
t,j) |
t,j) |
) |
The vectors are returned as a Coords object. If not closed, this returns one less vectors than the number of points.
) |
normalized=True) |
If open, the number of directions returned is 2 less than the number of points.
) |
div) |
'div' is a list of relative curve lengths (from 0.0 to 1.0). As a convenience, an single integer value may be specified, in which case the relative curve lengths are found by dividing the interval [0.0,1.0] in the specified number of subintervals.
The function returns a list with the parameter values for the points at the specified relative lengths.
) |