SGmotorshaft

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 4.9, Creation date: 2020-07-21, Last change: 2025-09-14

returns a solid geometry for a motor shaft with undercut

Description

Originally created for Dr. Franz Irlinger

See Also: , SGpinwrenchsize

Example Illustration

 missing image of SGmotorshaft(D,L,r,ol)

Syntax

[SG,PL]=SGmotorshaft([D,L,r,ol])

Input Parameter

D: Diamater, default is 0.25
L: Length, default is D
r: Undercut, default is .25
ol: Step, default is r

Output Parameter

SG: Solid Geometry including Frames
PL: Point List

Examples


SGmotorshaft(2.5,4,0.1,[0 4])




Copyright 2020-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, SGmotorshaft, generates a solid geometry for a motor shaft with an undercut. It is part of the SG-Library and was created by Tim Lueth.

Input Parameters

Output Results

Algorithm Steps

  1. Retrieve input parameters using getfuncparams function. If not provided, use default values:
    • D is set to 2.5 if not specified.
    • L is set to D if not specified.
    • r is set to 0.25 if not specified.
    • ol is set to r if not specified.
  2. Calculate the radius R as half of D.
  3. If ol is a scalar, convert it to a two-element vector [0, ol].
  4. Assign ox to the second element of ol and ol to the first element.
  5. Define the point list PL for the motor shaft geometry.
  6. Mirror the point list PL to create PLU and append it to PL.
  7. Apply radial edges to PL using PLradialEdges function.
  8. Remove successive identical points from PL using VLremsuccident function.
  9. Generate the solid geometry SG by rotating the point list PL using SGofCPLrot.
  10. Set the transformation of SG using SGTset with a rotation matrix.
  11. If no output is requested, plot the geometry using SGfigure, SGplotalpha, and SGTframeplot.
Algorithm explaination created using ChatGPT on 2025-08-19 07:24. (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