From 147d308eee907eb4c75f8880e09f3f29f931c4e2 Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Tue, 28 Sep 2021 08:06:58 +0200 Subject: [PATCH] Add lamellar infill --- scad/Infill.scad | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scad/Infill.scad b/scad/Infill.scad index 2397ce4..710ab92 100644 --- a/scad/Infill.scad +++ b/scad/Infill.scad @@ -26,6 +26,13 @@ module concentricCircleInfill(density=defaultDensity, strength=defaultStrength, +// generates straight lines along the X-axis +module lamellarInfill(density=defaultDensity, strength=defaultStrength, size=defaultSize) { + translate([0, -10^size/2, -10^size/2]) linear_extrude(10^size) for (ty=[0 : strength/density : 10^size]) translate([0, ty, 0]) square([10^size, strength], center=true); +} + + + module regularSpikeInfill(density=defaultDensity, strength=defaultStrength, size=defaultSize) { step = 2; // TODO: do the math and calculate this appropriately! @@ -34,6 +41,3 @@ module regularSpikeInfill(density=defaultDensity, strength=defaultStrength, size for (tx=[-_size:step:_size], ty=[-_size:step:_size]) translate([tx, ty, 0]) cylinder(d=strength, h=10^size, center=true); } - -regularSpikeInfill(size=3); - -- GitLab