hexasphere
v1.0.2
Published
A TypeScript library for generating hexagonal sphere subdivisions (geodesic polyhedron)
Downloads
3,422
Maintainers
Readme
hexasphere
A TypeScript port of Hexasphere.js - a JavaScript library for generating hexagonal sphere subdivisions (geodesic polyhedron).
Installation
npm install hexasphereUsage
This library provides the same API as the original hexasphere.js but with full TypeScript support:
import { Hexasphere } from "hexasphere";
const sphere = new Hexasphere(radius, subdivisions, hexSize);For detailed usage instructions, examples, and API documentation, please refer to the original hexasphere.js repository.
TypeScript Support
This package includes TypeScript definitions and is built with modern ES2020 target for optimal compatibility.
License
MIT License - see LICENSE file for details.
Original hexasphere.js: Copyright (c) 2014-2017 Robert Scanlon
TypeScript port: Copyright (c) 2025 Jaren Glenn
