Syntax
[PSX,di]=fourbarposesearchcouplercurve(PS,[CPLF,acc,rots])
Input Parameter
PS : | | Pose struct |
CPLF : | | Point List or contour considered as SET of points! |
acc : | | [min max]; default is [0 inf] |
rots : | | true==rotating, false=non rotating; default is '' |
Output Parameter
PSX : | | Pose struct sorted by minimal square distance |
di : | | sum of minimal square distance |
Examples
Posesample(29); PS=ans; % Just squares
Posesample(29); PS=ans; fourBarposesyntheses(PS,1,[16]);PS=ans; % 57104 solution were found using 1-Pose-Synthesis.
CPLF=[0 0 ; 30 30]; fourbarposesearchcouplercurve(PS,CPLF); PSX=ans; SGfigure;PLplot(CPLF,'b-',2); fourBarposeplotsolution(PSX,1,'animate')
SGfigure; PLplot(CPLF,'k-',2);PLplot(CPLF([1,end],:),'k*',2); fourBarposeplotsolution(PSX,1,'animate');
CPLF=[-0 -0 ; 10 20; 30 30]; CPLF=PLaddauxpoints(CPLF,5); fourbarposesearchcouplercurve(PS,CPLF); PSX=ans;
CPLF=PLcircle(50,'',pi/2)+[10 20]; fourbarposesearchcouplercurve(PS,CPLF); PSX=ans;
CPLF=PLcircle(50,'',pi/2)+[10 20]; fourbarposesearchcouplercurve(PS,CPLF,[1 5],true); PSX=ans; % only rotating
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