From 73ecdefa1fede978f6cc8e502b47608bcf92a417 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 23 Apr 2024 18:39:43 +0200 Subject: Filamenthalter neu --- Filamenthalter/Filamenthalter.scad | 46 ++++++++++++++++++++++++++++++++++++++ Filamenthalter/Makefile | 2 ++ 2 files changed, 48 insertions(+) create mode 100644 Filamenthalter/Filamenthalter.scad create mode 100644 Filamenthalter/Makefile 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 $@ $< -- cgit v1.2.3-54-g00ecf