[script] Cyclic polygon

 From:  Max Smirnov (SMIRNOV)
7412.1 
I wrote this simple script for my own purposes, but maybe it can be useful to others.
This script creates cyclic polygon with side lengths exactly as segment lengths of a given polyline (if it possible, of course)

EDITED: 7 Mar 2022 by SMIRNOV