curve.getSkeletonPoints(t)
Return an object that contains five points necessary for dividing curves.
The function expects t
to lie between 0 and 1; values outside the range are constrained to 0 and 1, respectively.
The returned object has the following properties:
startControlPoint1 |
First curve's controlPoint1 . |
---|---|
startControlPoint2 |
First curve's controlPoint2 . |
divider |
The point at t ; end point of the first curve and start point of the second curve. |
dividerControlPoint1 |
Second curve's controlPoint1 . |
dividerControlPoint2 |
Second curve's controlPoint2
|
If only the point at t
is needed, use the curve.pointAtT()
function.
If the two divided curves are needed, rather than their control points, use the curve.divide()
function.