Thingiverse
OpenSCAD XbyY object replicator
di tonyhansen
3
Download
2
Likes
0
Makes
use LT XbyY.scad GT
(Replace LT with less than and GT with greater than. No matter what I 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, s
(Replace LT with less than and GT with greater than. No matter what I 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, s
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!