tra - Translation of data

Name

tra — Translation of data

Syntax

tra x y z | bck | zer | loc | ref

Description

Translate (i.e. move or shift) the active dataset.

Arguments

x y z

Translate dataset in each cordinate by distance x y z.

zer

Translate the dataset to position (0,0,0) (i.e. subtract @xmin, @ymin, @zmin).

bck

Translate back the previous operation.

loc

After the translation the location point of the dataset will match the reference point. The location point is the cursor position when set by the command spe loc cur. The reference point is the cursor position when set by the ref command.

ref

Translate so that reference point goes to location point. Se above for explanation of reference and location points.

Examples

Ex.1: Translate a dataset in x, y and z

        tra 2 4 6       ;# translate active data in x y z values

Ex.2: Translate a dataset using location and reference point

# position the cursor at a point in the dataset
spe loc         ;# specify the location point
# position the cursor at a position in the screen
ref             ;# specify the reference point
tra loc         ;# translate so that the location point goes to the reference point

See also

ref - Reference point, spe loc