diff options
-rw-r--r-- | Filamenthalter/Filamenthalter.scad | 46 | ||||
-rw-r--r-- | Filamenthalter/Makefile | 2 |
2 files changed, 48 insertions, 0 deletions
diff --git a/Filamenthalter/Filamenthalter.scad b/Filamenthalter/Filamenthalter.scad new file mode 100644 index 0000000..5c2f562 --- /dev/null +++ b/Filamenthalter/Filamenthalter.scad @@ -0,0 +1,46 @@ +r = 52/2; +d = 102; +Rand = 4; +dSchraube = 10; +dQuader = 3/4*r; +eps = 0.1; + +Teil = "beide"; + +module Stab() { + difference() { + union() { + cylinder(r=r+Rand, h=Rand); + translate([0,0,Rand]) + cylinder(r=r, h=d); + } + translate([0,0,-1]) + cylinder(r=dSchraube/2, h=d+Rand+2); + translate([-dQuader/2-eps,-dQuader/2-eps,d+Rand-dQuader+1]) + cube(dQuader+2*eps); + } +} + +module Deckel() { + difference() { + union() { + translate([-dQuader/2-eps,-dQuader/2-eps,Rand]) + cube(dQuader-2*eps); + cylinder(r=r+Rand, h=Rand); + } + translate([0,0,-1]) + cylinder(r=dSchraube/2, h=dQuader+Rand+2); + translate([-dSchraube/2-eps,-dSchraube/2-eps,-1]) + cube(dSchraube + 2*eps); + } +} + +if (Teil == "Stab") { + Stab(); +} else if (Teil == "Deckel") { + Deckel(); +} else if (Teil == "beise") { + translate([2*r+3*Rand,0,0]) + Stab(); + Deckel(); +} diff --git a/Filamenthalter/Makefile b/Filamenthalter/Makefile new file mode 100644 index 0000000..c8e812c --- /dev/null +++ b/Filamenthalter/Makefile @@ -0,0 +1,2 @@ +Filamenthalter/Filamenthalter-%.stl: Filamenthalter/Filamenthalter.scad + openscad -D '$$fa=$(FA)' -D '$$fs=$(FS)' -D 'Teil="$(lastword $(subst -, ,$(patsubst %.stl,%,$@)))"' --export-format stl -o $@ $< |