by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 4Bar/Linkages
Introduced first in SolidGeometry 4.6, Creation date: 2019-05-05, Last change: 2025-09-14
See Also: CPLfourbarlinkagehull
, SGfourbarplate
SG=SGfourbarhullplate(ARCR,ARC1,ARCB,roi,[h])
ARCR: | Hull of crank movement | |
ARC1: | Hull of swing movement | |
ARCB: | Contour to connect base points of crank and swing | |
roi: | outer and inner radius if link geoemtry | |
h: | heiht; default is [roi(1)/2] |
SG: | Solid Geometry |
CPLfourbarlinkagehull (60,40,100,60,'',1);
CPLfourbarlinkagehull (60,40,50,60,'',1);
[ARCR,ARC1,ARCB]=CPLfourbarlinkagehull (60,40,50,60,'',2); roi=[5 3]
SGfourbarhullplate(ARCR,ARC1,ARCB,roi);
This function, SGfourbarhullplate, is designed to compute the hull shapes of a crank and swing in a four-bar linkage system. It is part of the SolidGeometry library and was introduced in version 4.6.
roi(1)/2 if not provided.h using the function getfuncparams, which defaults to roi(1)/2 if not specified.ARCR, ARC1, and ARCB using CPLremstraightAmin with a threshold of 1e-2.ARCR, ARC1, and ARCB using CPLbool with the '+' operation to form CPLH.CPLH using CPLremstraightAmin with a threshold of 0.1.ARCR and ARC1 using CPLbuffer with a negative buffer of -roi(2), and store them in CPLR and CPL1 respectively.CPLH with a honeycomb pattern using CPLfillHoneycomb with parameters roi(2)/2 and 2*roi(1).CPLH with CPLR and CPL1 using CPLbool with the '+' operation.CPLH into a solid geometry SG using SGofCPLz with height h.SGplot and CPLplot for visual representation, and adjust lighting with setplotlight and camlightTL.