Skip to content

Function: buildParcelPuzzle() ​

ts
function buildParcelPuzzle(input, options?): ParcelPuzzleGeometry;

Defined in: puzzle/buildParcelPuzzle.ts:121

Partition labeled triangles and close each parcel with a backing and side walls. Within a triangle, interpolate each label's indicator and take its maximum. Two-label boundaries meet edge midpoints; three-label junctions meet the centroid. Shared boundary coordinates are identical on both pieces; source arrays are not changed.

Parameters ​

input ​

ParcelPuzzleInput

options? ​

ParcelPuzzleGeometryOptions = {}

Returns ​

ParcelPuzzleGeometry

Released under the MIT License.