OpenScad polyhedronByCylindrical

After looking at how threads are made in openscad, I realised that it is too confusing to utilise for other stuff.
So here is a start to me creating different spaces to work in, in order to apply polyhedron points where I want them, and to place faces accordingly.
I thought it would be good to share my first attempts so that the polyhedronByCylindrical can be used by others.
poluhedronByspherical is coming.
and slowly by helical - no promises it's a tough one to solve.