X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FGEOM%2Finput%2Ftranslation_operation.doc;h=4ebe45b14b92ef6d7b0f3d180534b76210988479;hb=a0e22ed86a0df64143edb095e07295a014b32c88;hp=60ca83c62962535519dbbf05af6baa3b064add09;hpb=73555c78ebf12a1fdb85157b8e7934ad566ae90a;p=modules%2Fgeom.git diff --git a/doc/salome/gui/GEOM/input/translation_operation.doc b/doc/salome/gui/GEOM/input/translation_operation.doc index 60ca83c62..4ebe45b14 100644 --- a/doc/salome/gui/GEOM/input/translation_operation.doc +++ b/doc/salome/gui/GEOM/input/translation_operation.doc @@ -7,39 +7,37 @@ This Operation makes a translation of an \b 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. +vector of translation. +\n Create a copy checkbox allows to keep the initial object, otherwise it will be removed. +\n \ref restore_presentation_parameters_page "Advanced options". \n The \b Result of all operations will be any \b GEOM_Object. -\n Firstly you can define an \b Object and the vector coordinates along the +The \b Vector of translation can be defined in three different ways selectable using the radio buttons. + +\n Firstly you can define the \b Vector by coordinates along the axes. \n TUI Command: geompy.MakeTranslation(Shape, DX, DY, DZ), where Shape is a shape to be translated, DX, DY, DZ are components of translation vector. \n Arguments: Name + one or several objects + 3 values (coordinates). -\n Advanced option: - \ref restore_presentation_parameters_page "Set presentation parameters and sub-shapes from arguments". \image html transformation1.png -\n Secondly you can define an \b Object and the start and the end points -of the vector. +\n Secondly you can define the \b Vector by the start and the end points. \n TUI Command: geompy.MakeTranslationTwoPoints(Object, Point1, Point2) \n Arguments: Name + one or several objects + 2 vertices -\n Advanced option: - \ref restore_presentation_parameters_page "Set presentation parameters and sub-shapes from arguments". + \image html transformation2.png -\n Finally you can define an \b Object and a vector. The object will be translated by the length of the vector. -If a curve has been selected instead of the vector, only its first and last vertices will be used to get the vector direction -and the dialog preview will display the vector along which the object will be translated. -\n TUI Command: geompy.MakeTranslationVector(Object, Vector) -\n Activate Distance checkbox and Distance field allow defining the custom distance of translation. -\n TUI Command for translation by vector and custom distance: geompy.MakeTranslationVectorDistance(Object, Vector, Distance) +\n Finally you can define the \b Vector explicitely. The \b Object will be translated by the length of the vector. +If a curve has been selected instead of the vector, only its first and last vertices will be used to get the vector direction and the dialog preview will display the vector along which the object will be translated. +\n Activate Distance checkbox and Distance field allow defining a custom distance of translation. + + +\n TUI Command: for translation by vector: geompy.MakeTranslationVector(Object, Vector) +\n TUI Command for translation by vector and a custom distance: geompy.MakeTranslationVectorDistance(Object, Vector, Distance) \n Arguments: Name + one or several objects + 1 vector. -\n Advanced option: - \ref restore_presentation_parameters_page "Set presentation parameters and sub-shapes from arguments". \image html transformation3.png