SGgearandrackDIN

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Components
Introduced first in SolidGeometry 4.3, Creation date: 2018-10-11, Last change: 2025-09-14

retunrs a gear and gear rack combination



See Also: PLgearrackDIN , SGgearpairDIN , SGgearrackDIN , CPLmotorshaft

Example Illustration

 missing image of SGgearandrackDIN(m,z1,z2,R,h)

Syntax

SGgearandrackDIN([m,z1,z2,R,h])

Input Parameter

m: module
z1: teeth number of gear
z2: teeth number of rack
R: bore of gear
h: height of gear and rack

Examples


SGgearandrackDIN(1,32,12,5,10)
SGgearandrackDIN(1,32,12,CPLmotorshaft(5,3),10)




Copyright 2018-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 algorithm is designed to create a gear and gear rack combination using the SGgearandrackDIN function. It is part of the SolidGeometry library and was introduced in version 4.3. The function takes several input parameters to define the characteristics of the gear and rack.

Input Parameters

Algorithm Steps

  1. The function begins by retrieving the input parameters using the getfuncparams function. Default values are provided if certain parameters are not specified:
    • m defaults to 1 if not provided.
    • z1 defaults to 21 if not provided.
    • z2 defaults to 10 if not provided.
    • R defaults to an empty string if not provided.
    • h defaults to m*6 if not provided.
  2. The gear is created using the SGgearDIN function with the parameters m, z1, R, h, and an additional parameter 0 which might represent a specific configuration or option.
  3. The gear rack is created using the SGgearrackDIN function with the parameters m, z2, an empty string, h, 1, and true. These additional parameters might represent specific configurations or options for the rack.
  4. The gear rack is then rotated by 90 degrees around the z-axis using the SGtransR function with a rotation matrix rot(0,0,pi/2).
  5. The gear rack is translated to a new position using the SGtransP function with a translation vector [m*z1/2 -m*pi*z2/2 0]. This positions the rack relative to the gear.
  6. If there are no output arguments (nargout==0), a new figure is created using SGfigure, and the view is set to a top-down perspective with view(0,90).
  7. The gear and rack are plotted using the SGplot function, with the gear in red ('r') and the rack in green ('g').
Algorithm explaination created using ChatGPT on 2025-08-19 00:25. (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