omdl  v0.6.1
OpenSCAD Mechanical Design Library
Repeat

Shape repetition and distribution tools. More...

+ Collaboration diagram for Repeat:

Files

file  tools_utility.scad
 Shape transformation utility tools.
 

Functions

module radial_repeat (n, r=1, angle=true, move=false)
 Distribute copies of a 2d or 3d shape equally about a z-axis radius. More...
 
module grid_repeat (g, i, c=1, center=false)
 Distribute copies of 2d or 3d shapes about Cartesian grid. More...
 

Detailed Description

Shape repetition and distribution tools.

Function Documentation

module grid_repeat ( ,
,
= 1,
center  = false 
)

Distribute copies of 2d or 3d shapes about Cartesian grid.

Parameters
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.

Example

tools_utility_dim_qvga_diag_grid_repeat.png
grid_repeat
1  grid_repeat( g=[5,5,4], i=10, c=50, center=true ) {cube(10, center=true); sphere(10);}

Definition at line 357 of file tools_utility.scad.

+ Here is the call graph for this function:

module radial_repeat ( ,
= 1,
angle  = true,
move  = false 
)

Distribute copies of a 2d or 3d shape equally about a z-axis radius.

Parameters
n<integer> The number of equally spaced radii.
r<decimal> The shape move radius.
angle<boolean> Rotate each copy about z-axis.
move<boolean> Move each shape copy to radii coordinate.

Example

tools_utility_dim_qvga_diag_radial_repeat.png
radial_repeat
1  radial_repeat( n=7, r=6, move=true ) square( [20,1], center=true );

Definition at line 326 of file tools_utility.scad.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: