Crates.io | hexasphere |
lib.rs | hexasphere |
version | 15.0.0 |
source | src |
created_at | 2020-08-04 03:07:27.830763 |
updated_at | 2024-09-23 13:11:05.732567 |
description | A library to evenly tile hexagons on a sphere. |
homepage | |
repository | https://github.com/OptimisticPeach/hexasphere.git |
max_upload_size | |
id | 272752 |
size | 121,892 |
hexasphere
Library for subdividing shapes, such as an icosahedron. This provides abstractions for almost anything to be possible, however there are many predetermined shapes.
This starts off with an icoashedron, and then proceeds to subdivide it. The subdivided points form the dual to a goldberg polyhedron. In essence, each point on this sphere is either a hexagon or a pentagon.
Points are interpolated using the geometric slerp
function to preserve their accuracy.
p == 0.5
in interpolation.A few more optimizations are coming, along with more options for generation:
Vec
.Hexasphere is distributed under the terms of either the MIT license, or the Apache License (Version 2.0) at the user's choice.
See the files named LICENSE-MIT and LICENSE-APACHE2 relative to the root directory of this project for more details.