Skip to content

Instantly share code, notes, and snippets.

@rafaelcaricio
Last active September 4, 2023 15:04
Show Gist options
  • Save rafaelcaricio/a8119e0cc7421cb8ea881c6a9b3d9c27 to your computer and use it in GitHub Desktop.
Save rafaelcaricio/a8119e0cc7421cb8ea881c6a9b3d9c27 to your computer and use it in GitHub Desktop.
Toothbrush Holder Model
// 7.5 mm
holder_pole_height = 11;
base_height = 2;
central_root_top = 8.9;
central_root_bottom = 9.6;
middle_base_height = 5;
// Base of model
cylinder(
h=base_height,
r1=14.5,
r2=8,
center=false
);
// Middle base
translate([0, 0, base_height - 0.001]) cylinder(
h=middle_base_height,
r1=8,
r2=10,
center=false
);
difference() {
translate([0.5, 0, base_height + middle_base_height - 0.001]){
// Main pole
cylinder(
h=holder_pole_height,
r1=central_root_bottom/2,
r2=central_root_top/2,
center=false
);
}
// Side cut for the main pole, both sides
translate([
-(central_root_bottom/2),
central_root_bottom/2,
base_height + middle_base_height - 0.5
]) {
rotate([5, 0, -12]) {
cube([15, 5, 13], center=false);
}
}
mirror([0, 1, 0]) {
translate([
-(central_root_bottom/2),
central_root_bottom/2,
base_height + middle_base_height - 0.5
]) {
rotate([5, 0, -12]) {
cube([15, 5, 13], center=false);
}
}
}
}
Display the source blob
Display the rendered blob
Raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment