ShapePath
new ShapePath()
THREE: THREE.ShapePath
Builds Shape instances from a sequence of move/line/bezier commands. Used by loaders to reconstruct shapes from serialized data.
Methods
| Method | Description |
|---|---|
moveTo(x: number, y: number): void | Starts a new subpath. |
lineTo(x: number, y: number): void | Adds a line segment. |
toShapes(): Shape[] | Converts the accumulated subpaths into Shape instances. |