Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:tra}
h2. Name

*tra* — Translation of data

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*tra* _x y z_ | *bck | zer | loc | ref* 

{panel}

h2. Description

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

h2. Arguments

_x y z_ 
{indent}Translate dataset in each cordinate by distance _x y z_.{indent} 
*zer* 
{indent}Translate the dataset to position (0,0,0) (i.e. subtract @xmin, @ymin, @zmin).{indent} 
*bck* 
{indent}Translate back the previous operation.{indent} 
*loc* 
{indent}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.{indent} 
*ref* 
{indent}Translate so that reference point goes to location point. Se above for explanation of reference and location points.{indent} 

h2. Examples

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

{noformat:|borderWidth=1|bgColor=#eeeeee}
        tra 2 4 6       ;# translate active data in x y z values

{noformat}

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

{noformat:|borderWidth=1|bgColor=#eeeeee}
        # 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
{noformat}

h2. See also

[ref - Reference point], [spe|spe - Specify parameters] _loc_
{pagebreak}