Syntax
SG=SGbitISO1173([n,l,d])
Input Parameter
Output Parameter
Examples
SGbitISO1173
SGbitISO1173(4)
Copyright 2019-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, SGbitISO1173, is designed to create a solid geometry model of a bit according to the DIN 3126 ISO 1173 standard. The function takes several input parameters and returns a solid geometry object.
Input Parameters
- s1: Not explicitly used in the code.
- s2: Not explicitly used in the code.
- l: Length of the bit. Default value is 15 mm.
- d1: Not explicitly used in the code.
- d2: Not explicitly used in the code.
Algorithm Steps
- The function begins by retrieving the input parameters using the
getfuncparams
function. It sets default values if parameters are not provided:
d
is set to 6.3 mm, which is equivalent to 1/4 inch.
l
is set to 15 mm.
n
is set to 6.
- The radius
r1
is calculated using the formula r1 = dofn(n) * d / 2
. The function dofn
is assumed to determine a factor based on n
.
- A solid geometry
SG
is created using the function SGofCPLzchamfer
with the following parameters:
PLcircle(r1, n)
: Creates a circular profile with radius r1
and n
segments.
l
: The length of the bit.
1
: Chamfer parameter.
false
: A boolean parameter, possibly for chamfer direction or type.
- The function
SGTset
is used to set transformation properties of the solid geometry:
'B'
with vector [0 0 -1]
: Sets a base transformation.
'F'
with vector [0 0 +1]
: Sets a forward transformation.
- If no output is requested (
nargout == 0
), the function visualizes the solid geometry:
SGfigure
: Initializes a figure for plotting.
view(-30, 30)
: Sets the view angle for the plot.
SGplotalpha(SG, 'g', 0.9)
: Plots the solid geometry with green color and 90% transparency.
SGTframeplot(SG)
: Plots the transformation frame of the solid geometry.
Algorithm explaination created using ChatGPT on 2025-08-18 23: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