From 19be2b575dc83b04a1e44882b91a2539fb62cd9b Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Tue, 30 Jul 2019 09:18:33 +0200 Subject: [PATCH] Additional python3 porting to make python scripts work --- src/HEXABLOCK_SWIG/hexablock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HEXABLOCK_SWIG/hexablock.py b/src/HEXABLOCK_SWIG/hexablock.py index 5f7c10b..0a58611 100644 --- a/src/HEXABLOCK_SWIG/hexablock.py +++ b/src/HEXABLOCK_SWIG/hexablock.py @@ -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) -- 2.30.2