SGDIN912head([M,Tp])
M : | Diameter metric | |
Tp : | Length metric mm |
SGDIN912head(5)
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.
M
and length Tp
from the input arguments using getfuncparams
. The default values are 2.5 for M
and 'inbus' for Tp
.ch
to determine if a chamfer is applied, defaulting to true
.DIN_912
and adjust the second column by multiplying with a factor from dofn(6)
.TL
for the given diameter M
using DINfindinTab
.M
to the first element of TL
and define an overlap ol
of 0.1.ch
is true, create a chamfered cylinder using SGofCPLzchamfer
with a circle of radius TL(6)/2
and height TL(5)
.ch
is false, create a simple cylinder using SGofCPLz
with the same parameters.SGB
using SGofCPLz
with a circle of radius TL(2)/2
and height TL(3) + ol
.SGB
from SGA
using SGsubtract
with the 'aligntop' option and an offset of +ol
.SG
using SGTset
with a rotation transformation TofR(rot(0,pi,0))
.SG
using sprintf
to format the string 'DIN912 M%.1f' with the diameter TL(1)
.SGfigure
, SGplotalpha
, and SGTframeplot
with specific view settings.