CPLskeletonsearch

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

creates a point list and an edge list

Description

Complex recursive function including path planning
Finds a skeleton by shinking the contour until it breaks into points, lines, or separateed contours. The detected points or lines are linked trough straigt lines or collision free pathes around the holes, if this is possible
The skeleton function is useful for many automatic construction function

See Also: CPLskeleton , CPLregionshrink , CPLregionbufferintersect , PLELconcat , matrixskeleton

Example Illustration

 missing image of CPLskeletonsearch(CPL,)

Syntax

[PL,EL]=CPLskeletonsearch(CPL,[])

Input Parameter

CPL: Closed contour line

Output Parameter

PL: Point list
EL: Edge list

Examples


CPLskeletonsearch(CPLsample(35))
CPLskeletonsearch(CPLsample(41))
CPLskeletonsearch(CPLsample(40))
CPLskeletonsearch(CPLsample(10)); [a,b]=CPLskeletonsearch(CPLsample(10))
CPLskeletonsearch([CPLsample(3);nan nan;PLcircle(2)])
CPLskeletonsearch([CPLsample(3)])




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