CPLrack4PL

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

returns a contour for rack that can be used as rack (ground link for linkages)



See Also: CPLconvexhullfillgap , CPLextendbyPL , CPLrackPLdelaunay , CPLofspokedPL

Example Illustration

 missing image of CPLrack4PL(PL,b,t,d)

Syntax

CPLF=CPLrack4PL([PL,b,t,d])

Input Parameter

PL: Point list such as [A0;B0]
b: buffer; distance required to implement a revolute joint
t: 'minimal', 'circ' or 'box', 'delaunay', 'spokes'; default is 'min'
d: if used; the points are cut out with this radius

Output Parameter

CPLF: Contour to carry revolute joints for linkages

Examples


CPLrack4PL(20*rand(10,2),1,'min');
CPLrack4PL(PLsample(12),1,'box');
CPLrack4PL(PLsample(12),1,'min');
CPLrack4PL(PLsample(12),1,'circ');
CPLrack4PL(PLsample(12),1,'bar');
CPLrack4PL(PLsample(12),1,'spoke');
SGofCPLz(CPLrack4PL(PLsample(12)*3,3,'spoke',1),4); % Cut out the point list als circles




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