Shape
new Shape()
THREE: THREE.Shape
2D shape with optional holes. Extends Path with hole support for use with ShapeGeometry and ExtrudeGeometry.
Properties
| Name | Type | Description |
|---|---|---|
holes | Path[] | Array of hole paths subtracted from the shape. |
Methods
| Method | Description |
|---|---|
getPointsHoles(divisions: number): Vector2[][] | Returns point arrays for each hole. |
extractPoints(divisions: number): { shape: Vector2[], holes: Vector2[][] } | Returns points for the outer shape and all holes. |