ShapePath
new ShapePath()THREE equivalent: THREE.ShapePath
Builds Shape instances from a sequence of move/line/bezier commands. Used by loaders to reconstruct shapes from serialized data.
Methods
Section titled “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. |