diff --git a/scad/Infill.scad b/scad/Infill.scad new file mode 100644 index 0000000000000000000000000000000000000000..9bd3153f566028bdea061aba89aa9d08aab12ee5 --- /dev/null +++ b/scad/Infill.scad @@ -0,0 +1,31 @@ + + +defaultSize = 3; +defaultDensity = 0.2; +defaultStrength = 1; + + +// TODO: write proper documentation about this!!! +// +// densitiy = 0…1 +// strength = material thickness +// size = size of the generated infill volume +// -> size is calculated as 10^size for each axis +// -> therefore the generated volume includes at least the cube [10^size, 10^size, 10^size] + + + +// generates concentric vertival cylinders around the origin +module concentricInfill(density=defaultDensity, strength=defaultStrength, size=defaultSize) { + + module ring(d, _str) { // TODO: use d as outer diameter or as mean diameter…? + difference() { + circle(d=d + _str); + circle(d=d - _str); + } + } + + ring(11-2, 1); +} + +concentricInfill($fn=100);