Skip to content

five-on-it / packages/catalogue/src/region/tunnels / tunnelMeshes

Function: tunnelMeshes() ​

tunnelMeshes(points, halfWidth, land, paint): TunnelMeshes

Defined in: packages/catalogue/src/region/tunnels.ts:72

A tunnel under a run of a road's points (see the module documentation): halfWidth the road's, land the land's height under a point as it was before the cutting, paint the colour of the hill at a height.

Parameters ​

points ​

readonly V3[]

halfWidth ​

number

land ​

(x, z) => number

paint ​

(y) => [number, number, number]

Returns ​

TunnelMeshes