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

Begin writing infills for printing

parent 2b84ba04
No related branches found
No related tags found
No related merge requests found
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);
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