SGfourbarhullplate

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

returns the hull shapes of crank, and swing



See Also: CPLfourbarlinkagehull , SGfourbarplate

Example Illustration

 missing image of SGfourbarhullplate(ARCR,ARC1,ARCB,roi,h)

Syntax

SG=SGfourbarhullplate(ARCR,ARC1,ARCB,roi,[h])

Input Parameter

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]

Output Parameter

SG: Solid Geometry

Examples


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);




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

Algorithm (Workflow)

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.

Input Parameters

Algorithm Steps

  1. Determine the height h using the function getfuncparams, which defaults to roi(1)/2 if not specified.
  2. Remove straight segments from ARCR, ARC1, and ARCB using CPLremstraightAmin with a threshold of 1e-2.
  3. Combine the hulls ARCR, ARC1, and ARCB using CPLbool with the '+' operation to form CPLH.
  4. Remove straight segments from the outer boundary of CPLH using CPLremstraightAmin with a threshold of 0.1.
  5. Create buffered versions of ARCR and ARC1 using CPLbuffer with a negative buffer of -roi(2), and store them in CPLR and CPL1 respectively.
  6. Fill CPLH with a honeycomb pattern using CPLfillHoneycomb with parameters roi(2)/2 and 2*roi(1).
  7. Combine CPLH with CPLR and CPL1 using CPLbool with the '+' operation.
  8. Convert the combined contour CPLH into a solid geometry SG using SGofCPLz with height h.
  9. If no output is requested, plot the solid geometry using SGplot and CPLplot for visual representation, and adjust lighting with setplotlight and camlightTL.
Algorithm explaination created using ChatGPT on 2025-08-19 08:21. (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