CPLgrow

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

grows a contour line in a distance

Description

Written on SY Bontekoning at Marina Panacea Palma de Mallorca.
2018-04-12 Modified in Dakhlar, Marocco, add parameter "unid" for handling of enclosed contours.
Supports fittings since SG-Lib 5.0.
"norm" - Outer contours grow, inner contours shrink
"outw" - Outer contours grow, inner contours grow also
"hole" - Outer contours grow, inner contours stay unchanged
"fitt" - Outer contours unchanged, inner contours grow


See Also: PLoutercontour , CPLoutercontour , PLgrow , CPLbuffer , CPLbufferEdges , CPLofPLgrow , CPLofPLgrowline , CPLbuffer

Example Illustration

 missing image of CPLgrow(CPL,w,edge,unid)

Syntax

[RPL,ENL,PNL,PDL]=CPLgrow(CPL,w,[edge,unid])

Input Parameter

CPL: Closed Polygon line
w: distance for growing
edge: true call CPLgrowEdge; default is false;
unid: "norm", "outw", "hole" , "fitt", for handling growing

Output Parameter

RPL: Recalculated CPL
ENL: Edge normal vector list
PNL: Point normal vector lit
PDL: Point direction vector list

Examples


CPLgrow(PLcircle(4),-1);
CPLgrow(PLstar(4,20),-1);
CPLgrow(PLstar(10,12),-3,true);
CPLgrow(CPLsample(12),1,false,'norm');
CPLgrow(CPLsample(12),1,false,'outw');
CPLgrow(CPLsample(12),1,false,'hole');
CPLgrow(CPLsample(12),1,false,'fitt');




Copyright 2015-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