Next: Rotate Operation Up: Solid Edit: A Previous: Solid Edit: A

Translate Operation

Figure (es8-tr0): Translating ARB8 Point 1 to the Origin

mged> Select the ``Translate'' entry in the solid edit menu
mged> p 0 0 0
mged>

Point 1 of the primitive is moved to point 0 0 0, as shown in Figure (es8-tr0) .

The translate solid operation is selected by either picking ``Translate'' on the solid edit menu with the mouse, by depressing the solid edit button on the button box, or by entering the press sed command. Parameters to the translate solid operation are of the form p a b c where a, b, and c are the new coordinates of point 1 in the solid. The other points are transferred to keep the same position relative to point 1. The general form of the new coordinates for point is

x ' = x + a - x
y ' = y + b - y
Z ' = Z + c - Z
The command

mged> p 1 -1 -1
mged>

can be used to restore the primitive to the original position.



Wed Feb 16 13:46:53 EST 1994