Shape
new Shape()THREE equivalent: THREE.Shape
2D shape with optional holes. Extends Path with hole support for use with ShapeGeometry and ExtrudeGeometry.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
holes |
Path[] |
Array of hole paths subtracted from the shape. |
Methods
Section titled “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. |