Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding Scale feature.
[modules/shaper.git]
/
src
/
GeomAlgoAPI
/
Test
/
TestAPI_Translation.py
diff --git
a/src/GeomAlgoAPI/Test/TestAPI_Translation.py
b/src/GeomAlgoAPI/Test/TestAPI_Translation.py
index 0d405fbaf3bb995d63d3fafb98d56e96fe81bfe0..b3933912e5d4529c5040ea924d84f9b412b9c4cb 100644
(file)
--- a/
src/GeomAlgoAPI/Test/TestAPI_Translation.py
+++ b/
src/GeomAlgoAPI/Test/TestAPI_Translation.py
@@
-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()