|
global mom_tool_name mom_tool_type
7 j0 f/ X W6 R- l9 lglobal mom_tool_diameter mom_tool_corner1_radius mom_tool_flute_length
2 d8 j! M* A0 {: g2 q: w' c( Cglobal mom_tool_length tip_angle mom_tool_point_angle RAD2DEG
, B; [5 n- e0 Xif ![ info exists mom_tool_corner1_radius ] { set mom_tool_corner1_radius0 V. e# U0 f9 C* J' Y) G- V
0 }
8 M$ ?" v7 N+ g& @if { $mom_tool_type == "Drilling Tool" } {4 K) ^- l! B# S: j* S2 Q; k4 ^7 F
set tip_angle [ expr $mom_tool_point_angle * $RAD2DEG ]! C( J9 O# v0 j% b0 g
MOM_output_literal ";(D=[format "%.2f" $mom_tool_diameter] Tip
+ A8 Q* ?" M2 T2 v+ dangle=[format "%.2f" $tip_angle] F=[format "%.2f" $mom_tool_flute_length]- p0 |" }8 _, g2 Z% x- Y
L=[format "%.2f" $mom_tool_length])"
& S, @8 r- J) \1 \* b} else {. V6 N+ f! i9 h& U
MOM_out_literal ";(D=[format "%.2f" $mom_tool_diameter] R=[format; D+ {; X( N; j, \
"%.2f" $mom_tool_corner1_radius] F=[format "%.2f" $mom_tool_flute_length]
; N5 D( m. h/ `4 | _% }$ [L=[format "%.2f" $mom_tool_length])"
8 L9 v1 v" j5 [& z7 Z/ E} |
|