Skip to content
Snippets Groups Projects
Commit 147d308e authored by fxk8y's avatar fxk8y :spider:
Browse files

Add lamellar infill

parent 7cfee85e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment