CPLrackPLdelaunay

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

returns a minimal CPL bar structure that contains all points of PL

Description

used to define rack strctures
Uses delaunay and not VLnearestNeighborN to avoid small angles

See Also: CPLextendbyPL , CPLrack4PL

Example Illustration

 missing image of CPLrackPLdelaunay(PL,b,c)

Syntax

CPL=CPLrackPLdelaunay([PL,b,c])

Input Parameter

PL: Point list
b: buffer size around PL
c: if true, a closed triangle is created in the special case of only three points

Output Parameter

CPL: final contour

Examples


PL=60*rand(4,2); CPLrackPLdelaunay(PL,2); % just repeat the call
PL=60*rand(3,2); CPLrackPLdelaunay(PL,2,false); % open triangle
PL=60*rand(3,2); CPLrackPLdelaunay(PL,2,true); % closed triangle




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