Salome HOME
projects
/
modules
/
hexablock.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Additional python3 porting to make python scripts work
[modules/hexablock.git]
/
src
/
HEXABLOCK_SWIG
/
hexablock.py
diff --git
a/src/HEXABLOCK_SWIG/hexablock.py
b/src/HEXABLOCK_SWIG/hexablock.py
index 5f7c10b1425cee991a4bc971e98c77ec8c3f80bd..0a586111a05b37fc4cd2240450456be789c2c683 100644
(file)
--- 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)