The best place for doing high-level math on an iPhone or iPad may be the Calculator app's Math Notes tool. In fact, with an ...
This file provides functions and modules that construct shapes from a list of cross sections. In the case of skin() you specify each cross sectional shape yourself, and the number of points can vary.