CVLzoutlinecontourfillgap

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVLz/Slices
Introduced first in SolidGeometry 4.9.1, Creation date: 2020-08-29, Last change: 2025-09-14

returns a CVLz stack with ONE convexhullcontour in each layer

Description

- CVLzconvexhullfillgap - closes gaps and try to find a SINGLE OUTLINE contour
- CVLzoutlinecontourfillgap - closes gaps but maintain ALL OUTLINE contours
The functions are based on the planar CPLfunctions
- CPLconvexhullfillgap - closes gaps and try to find a SINGLE OUTLINE contour
- CPLoutlinecontour - closes gaps but maintain ALL OUTLINE contours

See Also: CVLzofSG , CVLzconvexhullfillgap

Example Illustration

 missing image of CVLzoutlinecontourfillgap(CVLz,d,slidein)

Syntax

[CVLz,zz]=CVLzoutlinecontourfillgap(CVLz,[d,slidein])

Input Parameter

CVLz: Stack of CPL sort by z values
d: minimal distance for slots inside each CPL
slidein: if true, CVLZ are united with z value; default is false

Output Parameter

CVLz: Stack with Convex hull contours
zz: y valuelist of CVLz

Examples


SG=SGsample(52); CVLz=CVLzofSG(SG,20);
CVLzoutlinecontourfillgap(CVLz,1); % not slots smaller than 1 mm
CVLzoutlinecontourfillgap(CVLz,1,true); % not slots smaller than 1 mm
SGplotalpha(SG,'w',0.20)




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