hexasphere icon indicating copy to clipboard operation
hexasphere copied to clipboard

Bug: `Subdivided::subdivisions` returns an incorrect value

Open VirgileHenry opened this issue 9 months ago • 0 comments

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.

VirgileHenry avatar Apr 21 '25 15:04 VirgileHenry