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

Begin spike infill

parent 705ef5e8
No related branches found
No related tags found
No related merge requests found
......@@ -23,3 +23,17 @@ module concentricCircleInfill(density=defaultDensity, strength=defaultStrength,
circle(d=d - 2*strength);
}
}
module regularSpikeInfill(density=defaultDensity, strength=defaultStrength, size=defaultSize) {
step = 2; // TODO: do the math and calculate this appropriately!
_size = (10^size) / 2;
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