Shape

new Shape()
THREE: THREE.Shape

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

Properties

NameTypeDescription
holes

Path[]

Array of hole paths subtracted from the shape.

Methods

MethodDescription
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.