Translation

To produce a Translation in the Main Menu select Operations - > Transformation - > Translation

 

This Operation makes a translation of an Object. To translate a shape you need to define the base shape and the coordinates of the vector of translation. Create a copy checkbox allows to keep the initial object, otherwise it will be removed.

The Result of all operations will be any GEOM_Object.

 

Firstly you can define an Object and the vector coordinates along the axes.

TUI Command: geompy.MakeTranslation(Shape, DX, DY, DZ), where Shape is a shape to be translated, DX, DY, DZ are components of translation vector.

Arguments: Name + 1 shape + 3 values (coordinates).

 

 

Secondly you can define an Object and the start and the end points of the vector  

TUI Command: geompy.MakeTranslationTwoPoints(Object, Point1, Point2)

Arguments: Name + 1 shape + 2 vertices

 

 

Finally you can define an Object and the vector  

TUI Command: geompy.MakeTranslationVector(Object, Vector)

Arguments: Name + 1 shape + 1 vector.

 

    

 

Example:

 

 

 

  Our TUI Scripts provide you with useful examples of the use of Transformation Operations.