Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Knife sheath
$fn = 100;
// Old German knife
blade_length = 108;
blade_width = 28;
// Izula
// blade_length = 70;
// blade_width = 29;
blade_thickness = 4.2;
holster_length = blade_length;
holster_width = blade_width + 8;
holster_thickness = blade_thickness + 3;
thumb_protrusion_thickness = 10;
thumb_protrusion_diameter = holster_thickness * 1.5;
blade_x = (holster_width - blade_width) / 2;
blade_y = (holster_thickness - blade_thickness) / 2;
blade_z = holster_length - blade_length;
module rounded_y_cube(x, y, z) {
translate([y / 2, 0, 0])
cube([x - y, y, z]);
translate([y / 2, y / 2, 0])
rotate([0, 0, 60])
cylinder(d=y, h=z);
translate([x - y / 2, y / 2, 0])
cylinder(d=y, h=z);
}
module half_rounded_y_cube(x, y, z) {
translate([y / 2, 0, 0])
cube([x - y, y, z]);
translate([y / 2, y / 2, 0])
rotate([0, 0, 60])
cylinder(d=y, h=z, $fn=3);
translate([x - y / 2, y / 2, 0])
cylinder(d=y, h=z);
}
module blade() {
half_rounded_y_cube(blade_width, blade_thickness, blade_length);
rotate([0, 150, 0]) {
cube(size = blade_length);
}
}
module holster() {
difference() {
rounded_y_cube(holster_width, holster_thickness, holster_length);
translate([0, blade_length * -0.5, 15]) {
rotate([0, 135, 0]) {
cube(size = blade_length);
}
}
}
}
module thumb_protrusion() {
difference() {
translate([holster_width + thumb_protrusion_thickness - holster_thickness, holster_thickness / 2, holster_length + thumb_protrusion_diameter]) {
rotate([0,195,0]) {
cylinder(d=thumb_protrusion_diameter, h=thumb_protrusion_diameter * 3);
}
}
translate([0, holster_length * -0.5, holster_length]) {
cube(size = holster_length);
}
}
}
clip_offset = 3.2;
clip_width = holster_width / 2;
clip_attachment = 5;
clip_thickness = 2;
clip_length = holster_length * 0.2;
translate([(holster_width - clip_width) / 2, holster_thickness, holster_length * 0.8]) {
cube(size = [clip_width, clip_offset, clip_attachment]);
translate([0, clip_offset, 0])
cube(size = [clip_width, clip_thickness, clip_length]);
translate([0, clip_offset / 2, clip_length - clip_thickness])
cube(size = [clip_width, clip_offset / 2, clip_thickness]);
}
difference() {
holster();
translate([blade_x, blade_y, blade_z]) {
blade();
}
}
difference() {
thumb_protrusion();
holster();
translate([blade_x, blade_y, blade_z]) {
blade();
}
}
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
You can’t perform that action at this time.