CPLconvexhullfillgap

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

returns the convex hull for a CPL

Description

The functions are based on the planar CPLfunctions
- CPLconvexhullfillgap - closes gaps and try to find a SINGLE OUTLINE contour
- CPLoutlinecontour - just returns ALL OUTLINE contours
- CPLfillgap -just fillgapsb etween contours

See Also: CPLrack4PL , CPLconvexhull , CPLconvexhulldelaunay , delaunayofCPL , CPLharbour , CPLfillin , CPLfillinside , CPLfillgap , CPLoutlinecontour

Example Illustration

 missing image of CPLconvexhullfillgap(CPL,d,ftyp,keep)

Syntax

[CPLD,dn]=CPLconvexhullfillgap(CPL,[d,ftyp,keep])

Input Parameter

CPL: CPL
d: distance to fill the gap; default is 0.1
ftyp: edge type 'default is 'square'
keep: colinear points; default is false

Output Parameter

CPLD: convex hull of the delaunay triangulation
dn:

Examples


CPLconvexhulldelaunay(CPLsample(14));
CPLconvexhulldelaunay(CPLsample(19));
CPLconvexhulldelaunay(CPLsample(21));
CPLfillgap(CPLsample(21),3)
CPLconvexhullfillgap(CPLaddauxpoints(CPLsample(14),0.5),'','miter',true)




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