Salome HOME
Copyright update 2020
[modules/hexablock.git] / src / HEXABLOCK_SWIG / hexablock.py
index 5f7c10b1425cee991a4bc971e98c77ec8c3f80bd..f4d67e79ebe00d463347f90df60fbf50a6c954fd 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: latin-1 -*-
-# Copyright (C) 2009-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2009-2020  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -140,7 +140,7 @@ def mesh (doc, name=None, dim=3, container="FactoryServer"):
 
     stream = doc.getFirstExplicitShape ()
     if stream != None :
-       shape = geompy.RestoreShape (stream)
+       shape = geompy.RestoreShape (stream.encode())
     else :
        shape = geompy.MakeBox(0, 0, 0,  1, 1, 1)