Skip to content

gridify_gosper

function gridify_gosper(D, __namedParameters): Point[];

Defined in: gosper.ts:405

Removes overlaps by snapping each point to a Gosper curve cell, resolving contested cells along the curve. Produces a hexagonal grid of 7^level cells, returned in the input’s own coordinate range.

ParameterTypeDescription
Dreadonly Point[]Input points.
__namedParametersGosperParameters-

Point[]

One cell centre per input point, in input order.

If there are more points than cells.