As I get older, it's tougher to see the little numbers at the top of a D4. Plus, when I tried designing my own (before I found this wonderful repo!), I tended to have the numbers "overlap" each other.
Once I realized the power of this tool, I decided I had to have the "bottom aligned numbers on a d4" option. So I put it in there. Gotta love open source!
Added "Place numbers on bottom" checkbox to the D4 UI
Added properties to store the checkbox state in
Revised numbers.ts to decide rotations based on the checkbox state (this code is not that clean - mostly a copy-and-paste of what was already there and tweaked the calculations a little)
Changed FACE_MAP in D4FaceGeometry to be the retrieved based on the checkbox state instead of being hard-coded.
Also in D4FaceGeometry, I added a Z rotation so the numbers are right-side-up. (The value 3.1 was found through trial-and-error rather than any actual math skills. If the math says it should be something different, it's a change worth adding in!)
Changed the UI rotation factor to .5 (5x what it was) because it was WAY too slow trying to examine the results of my changes!
As I get older, it's tougher to see the little numbers at the top of a D4. Plus, when I tried designing my own (before I found this wonderful repo!), I tended to have the numbers "overlap" each other.
Once I realized the power of this tool, I decided I had to have the "bottom aligned numbers on a d4" option. So I put it in there. Gotta love open source!