omdl
v0.9.5
OpenSCAD Mechanical Design Library
|
Shape repetition tools. More...
Files | |
file | repeat.scad |
Shape repetition tools. | |
Functions | |
module | repeat_radial (n, r=1, o=0, angle=true, move=false) |
Distribute copies of a 2d or 3d shape equally about a z-axis radius. More... | |
module | repeat_grid (g, i, c=1, center=false) |
Distribute copies of 2d or 3d shapes about Cartesian grid. More... | |
Shape repetition tools.
Requires: |
---|
include <omdl-base.scad>; |
I | II |
---|---|
module repeat_grid | ( | g | , |
i | , | ||
c | = 1 , |
||
center | = false |
||
) |
Distribute copies of 2d or 3d shapes about Cartesian grid.
g | <integer-list-3 | integer> The grid division count. A list [x, y, z] of integers or a single integer for (x=y=z). |
i | <decimal-list-3 | decimal> The grid increment size. A list [x, y, z] of decimals or a single decimal for (x=y=z). |
c | <integer> The number of copies. Number of times to iterate over children. |
center | <boolean> Center distribution about origin. |
Object example
Definition at line 494 of file repeat.scad.
module repeat_radial | ( | n | , |
r | = 1 , |
||
o | = 0 , |
||
angle | = true , |
||
move | = false |
||
) |
Distribute copies of a 2d or 3d shape equally about a z-axis radius.
n | <integer> The number of equally spaced radii. |
r | <decimal> The radial move distance. |
o | <decimal> The rotational angular offset. |
angle | <boolean> Rotate each copy about z-axis. |
move | <boolean> Move each shape copy to radii coordinate. |
Object example
Definition at line 458 of file repeat.scad.