Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJoseph Lenox <lenox.joseph@gmail.com>2016-05-29 18:56:21 +0300
committerJoseph Lenox <lenox.joseph@gmail.com>2016-05-29 18:56:21 +0300
commitea9b10c7640e5a293024dc19f0f2babbdb347701 (patch)
tree2defd4c073ad60ce034bd82d7d4569252f15802e /utils
parent9e8022f6f62b6f4c07b5846a765128b3609e53ef (diff)
Added a short OpenSCAD description to aid in the creation of simple modifier meshes that describe a change every N layers
Diffstat (limited to 'utils')
-rw-r--r--utils/modifier_helpers/solid_layers.scad24
1 files changed, 24 insertions, 0 deletions
diff --git a/utils/modifier_helpers/solid_layers.scad b/utils/modifier_helpers/solid_layers.scad
new file mode 100644
index 000000000..80a92fee0
--- /dev/null
+++ b/utils/modifier_helpers/solid_layers.scad
@@ -0,0 +1,24 @@
+// Used to generate a modifier mesh to do something every few layers.
+// Load into OpenSCAD, tweak the variables below, export as STL and load as
+// a modifier mesh. Then change settings for the modifier mesh.
+
+// Written by Joseph Lenox; in public domain.
+
+layer_height = 0.3; // set to layer height in slic3r for "best" results.
+number_of_solid_layers = 2;
+N = 4; // N > number_of_solid_layers or else the whole thing will be solid
+model_height = 300.0;
+model_width = 300.0; // these two should be at least as big as the model
+model_depth = 300.0; // but bigger isn't a problem
+initial_offset=0; // don't generate below this
+
+position_on_bed=[0,0,0]; // in case you need to move it around
+
+// don't touch below unless you know what you are doing.
+simple_layers = round(model_height/0.3);
+translate(position_on_bed)
+ for (i = [initial_offset:N:simple_layers]) {
+ translate([0,0,i*layer_height])
+ translate([0,0,(layer_height*number_of_solid_layers)/2])
+ cube([model_width,model_depth,layer_height*number_of_solid_layers], center=true);
+ }