At Unite Austin 2017, Ryan Hipple talked about the advantage of using scriptable objects in Unity. The video is here (HIS TALK): https://youtu.be/raQ3iHhE_Kk?t=1964 ...
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.