CPLunionreplace

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.2, Creation date: 2022-07-03, Last change: 2025-09-15

countour union after a subtraction of a bounding box or convex hull



See Also: SGunionreplace , CPLunion , CPLadd , CPLbool , CPLsubtract , CPLintersect , CPLxor , CPLconcat

Example Illustration

 missing image of CPLunionreplace(CPLA,CPLB,relparam,

Syntax

CPL=CPLunionreplace(CPLA,CPLB,[relparam,"type","ol"])

Input Parameter

CPLA: Contour A
CPLB: Contour B
relparam: relative parameter to adjust position
"type": bb, convexhull, delaunay, fillgap
"ol": optional overl; default is 0

Output Parameter

CPL: Final contour

Examples


CPLunionreplace(PLcircle(30),CPLsample(13))
CPLunionreplace(PLcircle(30),CPLsample(13),'type','bb')
CPLunionreplace(PLcircle(30),CPLsample(13),'type','convexhull')
CPLunionreplace(PLcircle(30),CPLsample(13),'type','delaunay')
CPLunionreplace(PLcircle(30),CPLsample(13),'aligntop','type','fillgap')




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