SGplotgears

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 5.4, Creation date: 2024-06-11, Last change: 2025-09-15

plot a gear i predefined colors from blue(1st) to orange (last)

Description

The function is different to SGplotcell (surfaces) or SGplotcellmultiple (subplots)
The color
blue is used for the 1st wheel
orange is used for the last wheel
the colors algea, purple

See Also: SGplotalpha , Videoquickanimatego , SGgearratio , SGgearchainwindup

Example Illustration

 missing image of SGplotgears(SG,cols,al,f)

Syntax

h=SGplotgears(SG,[cols,al,f])

Input Parameter

SG: cell list of gear solids
cols: colorstring or color cells; default is 'bcgmo'
al: transparency default is 1
f: gear ratio f calculated by SGgearchainwindup

Output Parameter

h: handle as cell list to be used for Videoquickanimatego

Examples


zz=SGgearratio(15,3,[12 45]), [SG,m,f]=SGgearchainwindup(1,zz,'stack')
SGfigure(-30,30); SGplotgears(SG,'',0.9); % clear gears
SGfigure(-30,30); SGplotgears(SG,'',0.5,f); % using gear ration f => animation




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