Skip to content

Function: insetPolygonPieces() ​

ts
function insetPolygonPieces(poly, distance): Polygon[];

Like insetPolygon, but every piece when a narrow neck pinches the shape apart.

Parameters ​

ParameterType
polyPolygon
distancenumber

Returns ​

Polygon[]

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).