polyhedra-viewer
polyhedra-viewer copied to clipboard
[Enhancement] Updated model and thumbnail data
My polyhedra data is adapted from George Hart's Virtual Polyhedra. It's a great resource and helped me take the polyhedra viewer off the ground. However, the data for many of the polyhedra -- particularly the Johnson solids, doesn't adhere to any particular alignment, meaning that some polyhedra end up with a really weird initial view:

The data should be updated so that . There are two ways to do this:
- create a transformer script that takes our current data and transforms it to align with the correct axes, or
- (my preferred approach) generate the polyhedra from "first principles", ie. using the vertex coordinates available through wikipedia and other sources.
2 is my preferred approach, but it runs into the problem that it requires additional computation to create each polyhedron, though this can be bypassed by using something like preval.macro to generate the data at compile time.
Another consideration is that most sources I can find only post vertex data, meaning we'd need some sort of convex hull algorithm to get the face data.
Once this is done, we'd just need to update the thumbnails with our fancy new aligned polyhedra!