Skip to content

Instantly share code, notes, and snippets.

@johnbintz
Last active September 16, 2016 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbintz/2a73befb3f11ccd0c4672391ae0ac623 to your computer and use it in GitHub Desktop.
Save johnbintz/2a73befb3f11ccd0c4672391ae0ac623 to your computer and use it in GitHub Desktop.
How I sliced up the Caverna Storage Solution for the Monoprice Select Mini 3D
// set max print size here
slice_x = 80;
slice_y = 80;
slice_z = 80;
// use like this:
//
// for y in 0 1 2 3; do for x in 0 1 2 3; do openscad -o "bottom_${x}x${y}.stl" --render -D x=$x -D y=$y bottom_slicer.scad ; done; done
//
// you may need to mess with the orientation of the imported file/slicer cube!
// if the slicer cube's slice produces no output, OpenSCAD will not save the output file. handy.
intersection() {
import("bottom_tray.STL");
translate([x * slice_x, y * slice_y, 0])
cube([slice_x, slice_y, slice_z]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment