Damnit, I give up.
Maybe it'll make more sense tomorrow.
Stupid 3D programming, it does my head in.
Got there in the end today. Still not really sure what was wrong but sufficient random fuzzing with the calculations seems to have worked in the end.
A gateway into the global open conversation in the fediverse for Boing folks and anyone they know.