Salome HOME
Updated copyright comment
[modules/hexablock.git] / doc / pyplots / test_cut.py
index 412ab004f69aafe511060277025b1570e714fb95..938612764efd27ed62b8d417d544953cb8d42eba 100644 (file)
@@ -1,9 +1,9 @@
-# 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
@@ -24,7 +24,7 @@ import GEOM
 import SALOMEDS
 import hexablock
 
-print "test cut hexaedra..."
+print("test cut hexaedra...")
 doc = hexablock.addDocument()
 
 size_x = 2
@@ -41,15 +41,15 @@ arete = grid.getEdgeK(0, 0, 0)
 ## doc.dump()
 
 file_name = os.path.join(os.environ['TMP'], 'no_decoupe.vtk')
-doc.saveVtk(file_name)
+####  doc.saveVtk(file_name)
 
 doc.cut(arete, 1)
 
 # doc.dump()
 file_name = os.path.join(os.environ['TMP'], 'decoupe.vtk')
-doc.saveVtk(file_name)
+####  doc.saveVtk(file_name)
 
 
-print "...test cut hexaedra OK"
+print("...test cut hexaedra OK")