R12ofCPL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.1, Creation date: 2021-12-19, Last change: 2025-09-15

return standardized link and joint dimensions

Description

More or less for creating nice images and animations in 4bar linkage synthesis

See Also: fourbarplotABGPL

Example Illustration

 missing image of R12ofCPL(CPL)

Syntax

R12o=R12ofCPL(CPL)

Input Parameter

CPL: List of Points for A0, B0, B1, A1

Output Parameter

R12o: [Outer and Inner radius] for links

Examples


R12ofCPL(CPLfourbarcontour(100,20,100,50)) % CAll with length




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

Algorithm (Workflow)

This function, R12ofCPL, is designed to calculate standardized link and joint dimensions for a four-bar linkage system. It is part of the SolidGeometry library and is used primarily for creating visual representations and animations of linkage systems.

Input Parameters

Output Results

Algorithm Steps

  1. Calculate the total distance of the points in CPL using the function VLdistance and store it in variable x.
  2. Round the value of x divided by 100 to the nearest integer.
  3. Calculate the outer radius as the maximum of 2 and x.
  4. Calculate the inner radius as the maximum of 1 and two-thirds of x.
  5. Store the calculated radii in the output variable R12o.
  6. If no output is requested (i.e., nargout == 0), proceed to visualize the linkage system:

Example Usage

The function can be called with a set of points representing a four-bar linkage contour, such as R12ofCPL(CPLfourbarcontour(100,20,100,50)).

Algorithm explaination created using ChatGPT on 2025-08-19 00:19. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21