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
See Also: CPLconvexhullfillgap
, CPLextendbyPL
, CPLrackPLdelaunay
, CPLofspokedPL
CPLF=CPLrack4PL([PL,b,t,d])
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 |
CPLF: | Contour to carry revolute joints for linkages |
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