circshiftCPL

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

returns a circular shifted CPL

Description

This is more or less for testing CPLcorrelate

See Also: CPLcircshift

Example Illustration

 missing image of circshiftCPL(CPL,n,pl)

Syntax

CPL=circshiftCPL(CPL,[n,pl])

Input Parameter

CPL: Closed Polygon List
n: number of circshifts polygon; default is random
pl: if true; the individul contours are shifted; default is false

Output Parameter

CPL: resulting CPL

Examples


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




Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21