
OpenSCAD XbyY object replicator
thingiverse
Use less than LT XbyY.scad GT. (Replace less than with < and greater than with >. No matter what you do, I can't seem to get real less than/greater than to appear here.) Save the SCAD file into a directory in your library path. Add the use statement to the top of your OpenSCAD code. Then call XbyY() with an object. Use this module to replicate any other series of OpenSCAD items, a certain number across and another number deep. For example, XbyY(maxX=3,maxY=4,bounds=10,spacing=3) cube(10); XbyY(maxX=20,maxY=10,bounds=10,spacing=3) cylinder(d=10, height=5); XbyY(maxX=3,maxY=3,bounds=20) union() { ... } Note: because there is no easy way yet to determine how big an item is, we need to provide the bounds, as well how much space is to be placed between the items. These may be specified using bounds and spacing, or separate values in the X and Y directories may be specified using separate boundsX/boundsY and spacingX/spacingY. For example, the cube here has sides of 3 and 4, so boundsX and boundsY are set to those respective values. Similarly, we want 3 units between the items in the X axis, and 5 units between the items in the Y axis, so spacingX and spacingY are set to 3 and 5, respectively: XbyY(maxX=5,maxY=5,boundsX=3,boundsY=4,spacingX=3,spacingY=5) cube([3,4,10]); These are the allowed options: XbyY(maxX = how many across, maxY = how many deep, boundsX = object width, boundsY = object depth, bounds = object width and depth, // sets both boundsX and boundsY spacingX = space between across, spacingY = space between deep, spacing = space between, both across and deep // sets both spacingX and spacingY
With this file you will be able to print OpenSCAD XbyY object replicator with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on OpenSCAD XbyY object replicator.