checkfourbarsegment

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 4Bar/Linkages
Introduced first in SolidGeometry 4.5, Creation date: 2019-02-01, Last change: 2025-09-14

calculates the angle intervals for a fourbar linkage and appoint point to the intervall

Description

wres return no, one or two angle intervalls for the fourbar linkage.
For a point of CRANK Positions (not Poses), s returns the segment
The function "realfourbarsolutions" analyzes the result of "invkinplan2" to detect a rotation, segment or two separated segments.
In contrast to that
The function "checkfourbarsegment" returns the angle areas for on or two segments


See Also: isincirclesegment , invkinplan2 , miofPLA0B0 , realfourbarsolutions , invkinplan2 , shiftindexofinvkinplan2

Example Illustration

 missing image of checkfourbarsegment(l1,l2,r,A0,PL,na)

Syntax

[wres,s,WL,ord,PL1,PL2]=checkfourbarsegment([l1,l2,r,A0,PL,na])

Input Parameter

l1: l1 of swing arm
l2: l2 of swing arm
r: r of crank
A0: Distance or A0 or [A0;B0]
PL: Points list to check or Pose with field A for PL
na: number of points for plotting contours PL1 and PL2

Property names

'silent' : if used, there will be no singularity warning

Output Parameter

wres: false or empty or [seg_min seg_max] or [seg1_min seg1_max seg_2min seg_2max]
s: list of angle segment per point zero, one or two
WL: angles of Points
ord: order of points
PL1: PLR-CYAN CONTOUR Point list for rotation of complete segment 1 (blue, cyan)
PL2: PLR=YELL CONTOUR Point list for rotation of complete segment 2 (yellow)

Examples


checkfourbarsegment(40,10,30,30,randminv(10,2,[-1 1])+[-30 0]);
close all; checkfourbarsegment(40,10,30,30,1000*randminv(50,2,[-1 1])+[-30 0])
close all; [a,b]=checkfourbarsegment(40,10,30,30,randminv(10,2,[-1 1])+[-30 0])
testfunctTL('checkfourbarsegment(60,40,51,[0 0;#1 #2])',[-50 0 +50],[-50 0 +50]);
testfunctTL('checkfourbarsegment(60,40,200,[#1 #2;0 0])',[-95 10 +95],[-95 10 +95]);




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