SGDIN912head

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

creates a Solid Geometry of a screw head with respect to DIN 912



See Also: SGiso4026 , SGiso4762 , SGDIN433 , SGDIN912

Example Illustration

 missing image of SGDIN912head(M,Tp)

Syntax

SGDIN912head([M,Tp])

Input Parameter

M: Diameter metric
Tp: Length metric mm

Examples


SGDIN912head(5)




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)

The function SGDIN912head creates a solid geometry model of a screw head according to the DIN 912 standard. It is part of the Solid Geometry library and was introduced in version 4.9.

Input Parameters

Algorithm Steps

  1. Retrieve the diameter M and length Tp from the input arguments using getfuncparams. The default values are 2.5 for M and 'inbus' for Tp.
  2. Initialize a variable ch to determine if a chamfer is applied, defaulting to true.
  3. Load the DIN 912 standard data into DIN_912 and adjust the second column by multiplying with a factor from dofn(6).
  4. Find the corresponding table line TL for the given diameter M using DINfindinTab.
  5. Set the diameter M to the first element of TL and define an overlap ol of 0.1.
  6. Create the screw head geometry:
  7. Create a subtraction geometry SGB using SGofCPLz with a circle of radius TL(2)/2 and height TL(3) + ol.
  8. Subtract SGB from SGA using SGsubtract with the 'aligntop' option and an offset of +ol.
  9. Set the transformation of the resulting geometry SG using SGTset with a rotation transformation TofR(rot(0,pi,0)).
  10. Assign a stamp name to SG using sprintf to format the string 'DIN912 M%.1f' with the diameter TL(1).
  11. If no output is requested, plot the geometry using SGfigure, SGplotalpha, and SGTframeplot with specific view settings.
Algorithm explaination created using ChatGPT on 2025-08-19 07:59. (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