Skip to content

Function: overlay() ​

ts
function overlay(
   outlines, 
   inside, 
   scale
): Shape[];

The boundary of { p : inside(p) } among the given outlines, as shapes. scale is the size of the scene; tolerances are relative to it.

Parameters ​

ParameterType
outlinesPolygon[]
inside(p) => boolean
scalenumber

Returns ​

Shape[]

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