CurvePath
new CurvePath()
THREE: THREE.CurvePath
Sequence of connected curves that can be sampled as a single path. Optionally auto-closes.
Properties
| Name | Type | Description |
|---|---|---|
curves | Curve[] | The individual curves in order. |
autoClose | boolean | When true, a closing line segment is added from the last point to the first. |
Methods
| Method | Description |
|---|---|
add(curve: Curve): void | Appends a curve to the path. |
closePath(): void | Adds a LineCurve from the last point back to the first if not already closed. |
getPoint(t: number, target?): Vector2|Vector3 | Returns the point at parameter t across the full path. |