CPLtemplateofCPL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-23, Last change: 2025-09-14

returns a template for a given CPL

Description

Attention: This function distinguishs between open and closed PL / CPLs for obvious reasons. Threfor close a PL such as PLcircle or PLstar by CPLofPL.

See Also: CPLgrow , PLgrow

Example Illustration

 missing image of CPLtemplateofCPL(CPL,pen,un)

Syntax

CPN=CPLtemplateofCPL(CPL,[pen,un])

Input Parameter

CPL: CPL separated by NaN NaN
pen: diameter of template
un: if true; contours are united; default is false;

Output Parameter

CPN:

Examples


A=[0 0; 10 0;NaN NaN;5 -5; 5 +5]; CPLtemplateofCPL(A,2,false)
A=[0 0; 10 0;NaN NaN;5 -5; 5 +5]; CPLtemplateofCPL(A,2,true)
CPLtemplateofCPL(PLsample(1))
CPLtemplateofCPL(PLsample(2))
CPLtemplateofCPL(PLsample(11),12)
CPLtemplateofCPL(CPLoftext('s'))
CPLtemplateofCPL(PLgearDIN(1,13))




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