Salome HOME
Merge branch 'master' into cgt/devCEA
[modules/shaper.git] / src / GeomAlgoAPI / Test / TestAPI_Translation.py
index 0d405fbaf3bb995d63d3fafb98d56e96fe81bfe0..b3933912e5d4529c5040ea924d84f9b412b9c4cb 100644 (file)
@@ -33,3 +33,12 @@ try :
  
 except myExcept, ec:
   print ec.what()
+
+# Perfom a translation with two points.
+try :
+  pnt1 = pnt(10.,0.,0.)
+  pnt2 = pnt(10.,15.,0.)
+  translation3 = shaperpy.makeTranslation(box,pnt1,pnt2)
+except myExcept, ec:
+  print ec.what()