It is generally best if the triangles forming your polyhedron are approximately equilateral ... This algorithm has quadratic run time so it can be slow with very large profiles. The "tangent" method ...
This file includes redefinitions of the core modules to work with attachment, and functional forms of those modules that produce paths. You can create regular polygons with optional rounded corners ...