Skip to main content

LayerStepAndRepeat

Trait LayerStepAndRepeat 

Source
pub trait LayerStepAndRepeat {
    // Required method
    fn step_and_repeat(
        &mut self,
        x_repetitions: u32,
        y_repetitions: u32,
        offset: &Pos,
    );
}
Expand description

Grid replication.

Required Methods§

Source

fn step_and_repeat( &mut self, x_repetitions: u32, y_repetitions: u32, offset: &Pos, )

Tiles the layer x_repetitions × y_repetitions times.

The first copy is the original; subsequent copies are offset by multiples of offset (mm).

Implementations on Foreign Types§

Source§

impl LayerStepAndRepeat for (&Unit, &mut Vec<Command>)

Source§

fn step_and_repeat( &mut self, x_repetitions: u32, y_repetitions: u32, offset: &Pos, )

Implementors§