add top part of zslider

This commit is contained in:
lukas 2022-02-11 17:05:14 +01:00
parent 2b59630e9a
commit 27884ada02
2 changed files with 27 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Build_STL:
- openscad -o Slider_front.stl Slider_front.scad
- openscad -o ZSlider_holder.stl ZSlider_holder.scad
- openscad -o ZSlider_mid.stl ZSlider_mid.scad
- openscad -o ZSlider_top.stl ZSlider_top.scad
artifacts:
expire_in: 2 days
paths:

26
ZSlider_top.scad Normal file
View File

@ -0,0 +1,26 @@
use <Slider_back.scad>;
use <helpers/Holes.scad>;
use <ZSlider_holder.scad>;
$fn=75;
module roundcube(x,y,z,rad=5) {
hull() {
translate([rad,rad,0]) cylinder(r=rad,h=z);
translate([x-rad,rad,0]) cylinder(r=rad,h=z);
translate([x-rad,y-rad,0]) cylinder(r=rad,h=z);
translate([rad,y-rad,0]) cylinder(r=rad,h=z);
}
}
module body() {
difference(){
translate([0,0,-9]) roundcube(49,49,9 + 10 + 18);
translate([4.5,0,10]) cube([40.3,49,19]);
translate([0,4.5,-9]) cube([49,40.3,9]);
}
}
body();