I think this would be very good as a library.
I've wanted to make screw type things, and having it already dones makes it that much simpler.
What I do for my triangle patches is, I always provide everything in counter clockwise order. Only very last "PlaceTriangle" deals with reversing that order as OpenScad wants it in clockwise order. th
at seems to work for me.