SGgearrackDIN

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

returns a gear rack for a gear



See Also: PLgearrackDIN , SGgearpairDIN

Example Illustration

 missing image of SGgearrackDIN(m,z,h0,b,tig,re)

Syntax

SG=SGgearrackDIN([m,z,h0,b,tig,re])

Input Parameter

m: module
z: number of teeth if integer or length if real
h0: base size
b: width of rack / height of gear
tig: false = gap; true= tooth
re: rounded edges; default is false

Output Parameter

SG: Solid Geoemtry

Examples


SGgearrackDIN(1,5,'',5,false)
SGgearrackDIN(1,5,'',5,false,true)




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 function, SGgearrackDIN, generates a gear rack based on the DIN standard. It is part of the SolidGeometry library and is used to create a 3D model of a gear rack.

Input Parameters

Algorithm Steps

  1. The function begins by retrieving the input parameters using the getfuncparams function. This function assigns default values if the parameters are not provided.
  2. The function PLgearrackDIN is called with the parameters m, z, h0, tig, and re. This function generates a 2D profile of the gear rack.
  3. The 2D profile is then converted into a 3D solid geometry using the SGofCPLz function, with the width b as the extrusion height.
  4. Optional transformations such as rotation and translation are commented out, indicating they are not applied in the current version of the function.
  5. If no output is requested (nargout==0), the function plots the 3D model using SGfigure and SGplot, with a specified view angle.
Algorithm explaination created using ChatGPT on 2025-08-19 00:28. (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