mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-27 09:10:02 -05:00
screw_polysink can now have h = 0 to get just the cone.
This commit is contained in:
parent
029265e1b9
commit
10c3df466b
@ -295,8 +295,10 @@ module screw_polysink(type, h = 100, alt = false) { //! A countersink hole made
|
|||||||
poly_cylinder(r = r, h = lh, center = false);
|
poly_cylinder(r = r, h = lh, center = false);
|
||||||
}
|
}
|
||||||
|
|
||||||
translate_z(layers * layer_height)
|
remainder = h / 2 - layers * layer_height;
|
||||||
poly_cylinder(r = rmin, h = h / 2 - layers * layer_height, center = false);
|
if(remainder > 0)
|
||||||
|
translate_z(layers * layer_height)
|
||||||
|
poly_cylinder(r = rmin, h = remainder, center = false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user