]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
NPAL 12483 Translate an object given a vector and a length
authordmv <dmv@opencascade.com>
Wed, 12 Mar 2008 16:27:35 +0000 (16:27 +0000)
committerdmv <dmv@opencascade.com>
Wed, 12 Mar 2008 16:27:35 +0000 (16:27 +0000)
idl/GEOM_Gen.idl
idl/GEOM_Superv.idl

index 4c30ee6005e62474bb20db50b949b08992aa85d0..fcbded3e8e5b0fa6324cd7c11983aca1d8fdf320 100644 (file)
@@ -474,6 +474,20 @@ module GEOM
     GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
                                     in GEOM_Object theVector);
 
+    /*!
+     *  Translate the given object along the given vector on given distance,
+     *  creating its copy before the translation.
+     *  \param theObject The object to be translated.
+     *  \param theVector Translation vector, giving a direction.
+     *  \param theDistance Translation distance, giving a distance.
+     *  \param theCope Translation copy, creating its copy if true.
+     *  \return New GEOM_Object, containing the translated object.
+     */
+    GEOM_Object TranslateVectorDistance (in GEOM_Object theObject,
+                                        in GEOM_Object theVector,
+                                        in double      theDistance,
+                                        in boolean     theCopy);
+
     /*!
      *  Translate the given object along the given vector a given number times
      *  \param theObject The object to be translated.
index 98d819daf53cf3e67e8be321cef78a42e1d00ac6..bb360ba274c4b5961e6afc8e80f3b5b47963aee8 100644 (file)
@@ -249,6 +249,10 @@ module GEOM
                                 in GEOM_Object theVector) ;
     GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
                                     in GEOM_Object theVector) ;
+    GEOM_Object TranslateVectorDistance (in GEOM_Object theObject,
+                                        in GEOM_Object theVector,
+                                        in double      theDistance,
+                                        in boolean     theCopy) ;
     GEOM_Object MultiTranslate1D (in GEOM_Object theObject,
                                  in GEOM_Object theVector,
                                  in double      theStep,