# Using transformation operations

In GEOM there is a set of operations allowing to transform the initial geometrical object into other objects, which will be also created. These operations are

- Translation

- Rotation

- Mirror

- Scale

- Multi-Translation (Pattern)

- Multi-Rotation (Pattern)

Translation

Description: Makes a translation of a shape.

Result: GEOM_Shape.

TUI Command: geompy.MakeTranslation(GEOM_Shape, Double, Double, Double)

Arguments: 1 shape + 3 values (coordinates).

Dialog Box:

Example:

Rotation

Description: Rotates the initial shape.

Result: GEOM_Shape.

TUI Command: geompy.MakeRotation(GEOM_Shape, AxisStruct, Double)

Arguments: 1 shape + 1 edge + 1 angle.

Dialog Box:

Example:

Mirror

Description: Symmetrical copy of a shape.

Result: GEOM_Shape.

TUI Command: geompy.MakeMirrorByPlane(GEOM_Shape, GEOM_Shape)

Arguments: 1 shape + 1 face.

Dialog Box:

Example:

Scale

Description: Creates a scaled shape basing on the initial shape.

Result: GEOM_Shape.

TUI Command: geompy.MakeScaleTransform(GEOM_Shape, PointStruct, Double)

Arguments: 1 shape + 1 vertex + 1 Scale Factor.

Dialog Box:

Example:

Multi-Translation

Description: Makes several translations of a shape in one or two directions.

Result: GEOM_Shape (compound).

TUI Command:

- geompy.MakeMultiTranslation1D(GEOM_Shape, DirStruct, Double, Short)

- geompy.MakeMultiTranslation2D(GEOM_Shape, DirStruct, Double, Short, DirStruct, Double, Short)

Arguments:

- 1st Constructor (in one direction): 1 shape + 1 edge (for direction) + 1 step value + 1 value (repetition).

- 2nd Constructor (in two directions): 1 shape + 2 edges + 2 step values + 2 values (repetitions).

Dialog Box:

Example:

One direction:

Two directions:

Multi-Rotation

Description: Creates several rotated geometrical objects in one or two directions basing on the initial geometrical object.

Result: GEOM_Shape (compound).

TUI Command:

- geompy.MakeMultiRotation1D(GEOM_Shape, DirStruct, PointStruct, Short)

- geompy.MakeMultiRotation2D(GEOM_Shape, DirStruct, PointStruct, Double, Short, Double, Short)

Arguments:

- 1st Constructor (in one direction): 1 shape + 1 edge + 1 value (repetition).

- 2nd Constructor (in two directions): 1 shape + 1 edge + 1 angle + 1 value (repetition) + 1 step value + 1 value (repetition).

Dialog Box:

Example:

One direction:

Two directions: