by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 3.9, Creation date: 2017-06-04, Last change: 2025-09-14
CPL=circshiftCPL(CPL,[n,pl])
CPL: | Closed Polygon List | |
n: | number of circshifts polygon; default is random | |
pl: | if true; the individul contours are shifted; default is false |
CPL: | resulting CPL |
SGfigure; B=circshiftCPL(CPLsample(13),123) ;CVLplot(circshiftCPL(B));
SGfigure; B=circshiftCPL(CPLsample(14),1000) ;CVLplot(circshiftCPL(B));
SGfigure; circshiftCPL(CPLsample(12),-1); B=ans
SGfigure; circshiftCPL(CPLsample(12),0); B=ans
SGfigure; circshiftCPL(CPLsample(12),+1); B=ans
SGfigure; circshiftCPL(CPLsample(12),+1); B=ans
Gfigure; circshiftCPL(B,+1,true); B=ans