omdl  v0.5
OpenSCAD Mechanical Design Library
Replications

Shape Replications and distribution. More...

+ Collaboration diagram for Replications:

Files

file  transform.scad
 Shape transformation functions.
 

Functions

module st_radial_copy (n, r=1, angle=true, move=false)
 Distribute copies of a 2D or 3D shape equally about a z-axis radius. More...
 
module st_cartesian_copy (grid, incr, copy=1, center=false)
 Distribute copies of 2D or 3D shapes about Cartesian grid. More...
 

Detailed Description

Shape Replications and distribution.

Function Documentation

module st_cartesian_copy ( grid  ,
incr  ,
copy  = 1,
center  = false 
)

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

Parameters
grid<vector|decimal> A vector [x, y, z] of decimals or a single decimal for (x=y=z).
incr<vector|decimal> A vector [x, y, z] of decimals or a single decimal for (x=y=z).
copy<decimal> Number of times to iterate over children.
center<boolean> Center distribution about origin.

Example

transform_dim_qvga_diag_st_cartesian_copy.png
st_cartesian_copy
1  st_cartesian_copy( grid=[5,5,4], incr=10, copy=50, center=true ) {cube(10, center=true); sphere(10);}

Definition at line 352 of file transform.scad.

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

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

Parameters
n<decimal> 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

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

Definition at line 322 of file transform.scad.