fourBarposelayering

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 4Bar/Linkages
Introduced first in SolidGeometry 5.1, Creation date: 2022-01-25, Last change: 2025-09-15

Creates the layering and the shaping of all 8 elements of a Fourbar linkage

Description

Afterwards a function such as SGofCLLL to implement the assembly method.
The process:
Posesample => Posedefiniton
fourBarposesyntheses => compute fourbars with 1, 2, 3 pose synthesis
fourBarposeplotsolution => plot or animate solutions
fourBarposesortsolution => sort and select solutions
fourBarposelayering => layer and compute shape
fourBarCLLL2SGdesign => Design for assembly and 3D print



See Also: CPLsubtractTLasSG , PLshortestpathinCPL , Posesample , fourBarposesyntheses , fourBarposeplotsolution , fourBarCLLL2SGdesign

Example Illustration

 missing image of fourBarposelayering(PSX,aps,R12,lay,Shape,

Syntax

[LLLM,TL0,TA1,TB1]=fourBarposelayering([PSX,aps,R12,lay,Shape,"debug","hide","wlim","full"])

Input Parameter

PSX: Pose struct include PS.solut field
aps: Single pose or selection of poses
R12: [Rout Rin Height]; default is [5 2.5 6]
lay: default is [0 2 1 1]
Shape: "A*" (default) or "Bezier"
"debug": covers the crank behind the effector
"hide": [angle-offset angle-range]; default is [0 360]
"wlim":

Output Parameter

LLLM: Contour Link Level Layering ==> fourBarCLLL2SGdesign
TL0:
TA1:
TB1:

Examples


PS=PosesampleWalk
PS=fourBarposesyntheses(PS,[1 2],[15 3 3],'','','isrot,break coll CPLW CPL0'); % 200 solutions
PS=fourBarposesyntheses(PS,[1 2],[20 2.5 2.5],'','','isrot,break coll CPLW CPL0'); % 317 solutions
fourBarposeplotsolution(PS,1);
fourBarposesortsolution(PS,'crank-length',[10 inf],'coupler-length'); PSX=ans;
fourBarposelayering(PSX,1,[3 1.6 3],[0 2 1 1 -2]); CLLL=ans; % CPLW must be -2
fourBarCLLL2SGdesign(CLLL,'',PSX.RACK)




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