Function: generateHexasphere()
ts
function generateHexasphere(radius, subdivisions): HexasphereData;Generate the hexasphere by building the dual of the subdivided icosahedron.
Algorithm:
- Subdivide each icosahedron face into n² triangles
- Project all vertices onto the unit sphere
- For each unique vertex, find all adjacent triangles
- Use the centroids of those triangles + midpoints of shared edges to form the tile boundary (hex or pent)
Parameters
| Parameter | Type |
|---|---|
radius | number |
subdivisions | number |