SGtoolTip(d1,d2,[w])
d1 : | outer diameter | |
d2 : | tip diameter | |
w : | optional angle; default is 90 degree |
SGA=SGtoolTip(8,5); SGfigure(SGA)
SGB=SGDIN13(8,20);
SGsubtract(SGB,SGA,'alignunder',+0.1)
This function, SGtoolTip, is designed to create a subtraction solid for shaping the tip of a bolt or screw, commonly used in machine elements according to DIN and ISO standards.
w
to 90 degrees. If a third argument is provided and is not empty, update w
with this value.t
as 2.n
using the function nofrd(d1+t)
, which determines the number of facets or divisions based on the outer diameter plus t
.h
of the tool using the formula: h = tan((180-w)/2/180*pi) * (d1-d2)
. This calculates the height based on the angle and the difference between the outer and tip diameters.PLcircle
with radii d1/2
and d1/2+t
, both divided into n
segments.CPL
, separating them with NaN NaN
to indicate a break between the two circles.PL
and edge list EL
from the concatenated point list CPL
using PLELofCPL
.SG
from the concatenated point list CPL
and height h
using SGofCPLz
.SG
by scaling the x and y coordinates of the second set of vertices (from n+1
to 2n
) by the ratio d2/d1
.d1
, d2
, h
, and d1+t
, and visualize the solid geometry using VLFLfigure
.