Skip to content

Instantly share code, notes, and snippets.

@K-Francis-H
Last active October 26, 2024 05:28
Show Gist options
  • Select an option

  • Save K-Francis-H/d18ec7648e0a89c10f8840bed996a2d8 to your computer and use it in GitHub Desktop.

Select an option

Save K-Francis-H/d18ec7648e0a89c10f8840bed996a2d8 to your computer and use it in GitHub Desktop.
include <BOSL2/std.scad>
include <BOSL2/threading.scad>
UNIT="imperial"; // [imperial, metric]
THREAD_LENGTH_INCHES=1.25;
THREAD_LENGTH_MM=31.75;
module broom_thread_internal_mask(length){
INCH=25.4;//mm
union(){
translate([0,0,length/2])
acme_threaded_rod(d=0.79*INCH, l=length, tpi=5, $fn=32, internal=true);
cylinder(d=0.675*INCH,h=length);
}
}
if(UNIT == "imperial"){
THREAD_LENGTH=THREAD_LENGTH_INCHES*25.4;
broom_thread_internal_mask(THREAD_LENGTH);
}else{//default to metric
broom_thread_internal_mask(THREAD_LENGTH_MM);
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment