Wow, thanks. I need to hang out here more.
It looks like I'm still hitting snags. The X/30° param would have to apply to the obtuse conditions, not acute conditions. It doesn't appear to be culling the right edges in some circumstances, and it's terminating early.
Regardless, thanks for giving me something to tinker with at some point.