hexasphere
hexasphere copied to clipboard
Bug: `Subdivided::subdivisions` returns an incorrect value
The following code:
let subdivisions = 64;
let sphere = IcoSphere::new(subdivisions, |_| ());
println!("passed vs got subdivisions: {} / {}", subdivisions, sphere.subdivisions());
prints: passed vs got subdivisions: 64 / 1
If I understood correctly, sphere.subdivisions() should return 64 ?
When looking at the implementation of new_custom_shape, the subdivisions is always set to 1.