Skip to content

Shape

new Shape()

THREE equivalent: THREE.Shape

2D shape with optional holes. Extends Path with hole support for use with ShapeGeometry and ExtrudeGeometry.

Name Type Description
holes Path[] Array of hole paths subtracted from the shape.
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.