-# Copyright (C) 2009-2012 CEA/DEN, EDF R&D
+# Copyright (C) 2009-2024 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
import SALOMEDS
import hexablock
-print "test make elements by transforming elements..."
+print("test make elements by transforming elements...")
doc = hexablock.addDocument()
size_x = 1
orig.setScalar(2)
file_name = os.path.join(os.environ['TMP'], 'transfo0.vtk')
-doc.saveVtk(file_name)
+#### doc.saveVtk(file_name)
devant = doc.addVector(5, 0, 0)
grid2 = doc.makeTranslation(grid, devant)
file_name = os.path.join(os.environ['TMP'], 'transfo_translation.vtk')
-doc.saveVtk(file_name)
+#### doc.saveVtk(file_name)
grid4 = doc.makeRotation(grid2, orig, dirVr, 45)
file_name = os.path.join(os.environ['TMP'], 'transfo_rotation.vtk')
-doc.saveVtk(file_name)
+#### doc.saveVtk(file_name)
-print "...test make elements by transforming elements OK"
+print("...test make elements by transforming elements OK")