CPLconvexhulloutline

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.1, Creation date: 2021-02-28, Last change: 2025-09-15

creates a ONE region CPL from several regions of a CPL by using the convex hull

Description

By using the parameter t, a lot of different possibilities exist:
CPLconvexhulloutline(CPLsample(14),1,0,'default'); % convexhull
CPLconvexhulloutline(CPLsample(14),1,0,'delaunay');% convexhulldelaunay
CPLconvexhulloutline(CPLsample(14),1,0,'fillgap'); % convexhullfillgap

See Also: CPLconvexhull , CPLconvexhulldelaunay , CPLconvexhullfillgap , CPLselectinout , CPLradialEdges

Example Illustration

 missing image of CPLconvexhulloutline(CPL,b,r,t)

Syntax

CPLN=CPLconvexhulloutline(CPL,[b,r,t])

Input Parameter

CPL: Original CPL with more than one region
b: buffer distance; default is 0
r: radius of edges; default is 0
t: type of convex hull: 'default', 'delaunay', 'fillgap'

Output Parameter

CPLN: Final CPL

Examples


CPLconvexhulloutline(CPLsample(26))
CPLconvexhulloutline(CPLsample(12))
CPLconvexhulloutline(CPLsample(14),1,2) % Buffer distance of 1, Radial edges of 2
CPLconvexhulloutline(CPLsample(14),1,0,'delaunay'); % Shape is delaunay
CPLconvexhulloutline(CPLsample(12),1,0,'fillgap'); % Shape is fillgap




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