mbrown1413 / Mechanical-Puzzle-Studio

The Swiss Army knife of mechanical puzzle design.
https://puzzlestudio.io/
Mozilla Public License 2.0
1 stars 0 forks source link

[Grid] Face-Centered Cubic Spheres Grid #93

Open mbrown1413 opened 2 months ago

mbrown1413 commented 2 months ago

"Spheres" grid in BurrTools, implemented in voxel_2.cpp.

BurrTools implements a "Spheres" grid, which is actually a face-centered cubic sphere packing. That at least needs to be implemented here, but it would be great if more sphere packing arrangements could also be used. Bonus points if most of the common functionality for all sphere packing grids is split into a common base class or something.

Some (or all?) of the regular sphere packing arrangements have a corresponding honeycomb (a regular 3d polyhedral tessellation). It's probably outside of the scope of this issue to implement all the corresponding grids for them, but we at least should have a plan for how to do so in the future. Will we have one grid per sphere packing arrangement, and have a flag to switch between spheres vs honeycomb? Or do we have one grid for sphere packing, and one grid for honeycombs, with an option on each for the particular arrangement?