Code formatting

This commit is contained in:
Chris Palmer 2020-08-13 17:02:14 +01:00
parent 966ba536ed
commit b6147e5684
1 changed files with 9 additions and 9 deletions

View File

@ -42,12 +42,12 @@ module insert(type) { //! Draw specified insert
chamfer1 = (insert_ring2_d(type) - insert_barrel_d(type)) / 2; chamfer1 = (insert_ring2_d(type) - insert_barrel_d(type)) / 2;
chamfer2 = (insert_ring3_d(type) - insert_barrel_d(type)) / 2; chamfer2 = (insert_ring3_d(type) - insert_barrel_d(type)) / 2;
ring2_h = ring1_h + chamfer1; ring2_h = ring1_h + chamfer1;
gap = (length - ring1_h - ring2_h- chamfer2) / 3; gap = (length - ring1_h - ring2_h - chamfer2) / 3;
vitamin(str("insert(", type[0], "): Heatfit insert M", insert_screw_diameter(type))); vitamin(str("insert(", type[0], "): Heatfit insert M", insert_screw_diameter(type)));
$fn = 64; $fn = 64;
thread_d = insert_screw_diameter(type); thread_d = insert_screw_diameter(type);
explode(20, offset =[0, 0, -5]) translate_z(eps) vflip() { explode(20, offset = [0, 0, -5]) translate_z(eps) vflip() {
r1 = thread_d / 2; r1 = thread_d / 2;
r2 = insert_barrel_d(type) / 2; r2 = insert_barrel_d(type) / 2;
r3 = insert_ring3_d(type) / 2; r3 = insert_ring3_d(type) / 2;