X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHEXABLOCK_SWIG%2Fhexablock.py;h=f4d67e79ebe00d463347f90df60fbf50a6c954fd;hb=167be4931bccbbe01e53313d18a9d3dd1484ecb4;hp=5f7c10b1425cee991a4bc971e98c77ec8c3f80bd;hpb=0ebe741f3ee8a69f147a5c02b41f33d3f3f02e0f;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK_SWIG/hexablock.py b/src/HEXABLOCK_SWIG/hexablock.py index 5f7c10b..f4d67e7 100644 --- a/src/HEXABLOCK_SWIG/hexablock.py +++ b/src/HEXABLOCK_SWIG/hexablock.py @@ -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)