CPLskeleton

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

returns a skeleton with equal distances to all wall sizes

Description

Programmed in 2019 (4.8) but released in 2022 (5.2)
Works with potential field with 1 percent accuracy (100 x 100) gridpoints

See Also: CPLskeletonsearch , matrixskeleton , matrixdistanceofCPL , matrixfilldistance

Example Illustration

 missing image of CPLskeleton(CPL,nn,ri)

Syntax

[PLA,ELA]=CPLskeleton(CPL,[nn,ri])

Input Parameter

CPL: Contour
nn: number of grid points; default is 100
ri: Amin for point removeal; default is -1

Output Parameter

PLA: Point list of Skeleton
ELA: Edge list of Skeleton

Examples


CPLskeleton(CPLsample(40))
CPLskeleton([CPLsample(3);nan nan;PLcircle(2)])
CPLskeleton([CPLsample(3)])
CPLskeleton([CPLsample(3);nan nan;PLcircle(3)],100,.1); % Accuracy 1/1mm




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