solid.Shape

Methods

Method Reference: solid.Shape.translate

solid.Shape: S = translate (S, V)

Move a shape by the vector V.

V is a 3-element vector in millimetres.

Like every method, it returns a new shape and leaves S as it was, so one part can be placed many times. The solids keep their colours.

 
 A = solid.box (10, 10, 10);
 B = translate (A, [0, 0, 10]);
 bbox (B)
 ⇒ 0   0   10   10   10   20

See also: solid.Shape.rotate, solid.Shape.mirror, solid.Shape.scale

Source Code: solid.Shape