Function: tileSizeToSubdivisions()
ts
function tileSizeToSubdivisions(radius, tileSize): number;Derives the hexasphere subdivision count needed to make each tile match tileSize on the surface of a sphere of the given radius.
The relation follows from the Goldberg polyhedron tile count: N = (4π r²) / tileSize² and N = 10·f² + 2 where f is the subdivision frequency returned.
Parameters
| Parameter | Type | Description |
|---|---|---|
radius | number | Sphere radius in world units. |
tileSize | number | Target tile edge length in world units. |
Returns
number
Subdivision frequency (≥ 2).