Ralf and David, thank you for the feedback and encouragement. I've already run into a problem — I tested everything during development using a polyline provided in another conversation by Bubba, but it turns out the dimensions were in inches. Today I tried with a file in millimeters, and the result was an absurdly refined, heavy surface. The internal parameters, tuned for inches, created an impractically large file. I'll fix this soon, but not today — time to sleep. Thanks to both of you.
PS: Thanks a lot for the polyline, Bubba!