Skip to content

Function: buildLayeredMergedGeometry()

ts
function buildLayeredMergedGeometry(
   tiles, 
   coreRadius, 
   solOuterRadius, 
   solHeightFn): LayeredMergedGeometry;

Builds the merged single-band hex-prism geometry for every tile.

Each tile contributes a sol prism between coreRadius and coreRadius + solHeight where solHeight is produced by solHeightFn and clamped into [0, shellThickness] (with shellThickness = solOuterRadius - coreRadius).

Parameters

ParameterTypeDescription
tilesreadonly Tile[]All hexasphere tiles to include.
coreRadiusnumberWorld-space radius of the inner core sphere.
solOuterRadiusnumberWorld-space radius of the sol surface.
solHeightFnSolHeightFnPer-tile sol height resolver.

Returns

LayeredMergedGeometry

Distribué sous la licence indiquée dans le dépôt.