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
Mise a jour M.Barry
[modules/hexablock.git]
/
src
/
HEXABLOCK_SWIG
/
hexablock.py
diff --git
a/src/HEXABLOCK_SWIG/hexablock.py
b/src/HEXABLOCK_SWIG/hexablock.py
index 531290dce01ed859cc493d4682375a138754a1ec..5b422849aea8b14711460a37009da9d83e3e4d7a 100644
(file)
--- a/
src/HEXABLOCK_SWIG/hexablock.py
+++ b/
src/HEXABLOCK_SWIG/hexablock.py
@@
-106,8
+106,14
@@
def mesh (doc, name=None, dim=3, container="FactoryServer"):
#### shape = geompy.MakeBox(0, 0, 0, 1, 1, 1)
#### else :
#### shape = doc.getShape (0)
#### shape = geompy.MakeBox(0, 0, 0, 1, 1, 1)
#### else :
#### shape = doc.getShape (0)
+ ### shape = geompy.MakeBox(0, 0, 0, 1, 1, 1)
+ ### stream = doc.getFirstExplicitShape ()
+ ### if stream != None :
+ ### shape = geompy.RestoreShape (stream)
+ ### else :
shape = geompy.MakeBox(0, 0, 0, 1, 1, 1)
shape = geompy.MakeBox(0, 0, 0, 1, 1, 1)
+
if (name == None) or (name == ""):
name = docname
if (name == None) or (name == ""):
name = docname
@@
-125,7
+131,6
@@
def mesh (doc, name=None, dim=3, container="FactoryServer"):
meshexa.mesh.AddHypothesis(shape, hypo)
### hypo.SetDocument(doc.getXml()) ## Hexa6 TODO et a verifier
meshexa.mesh.AddHypothesis(shape, hypo)
### hypo.SetDocument(doc.getXml()) ## Hexa6 TODO et a verifier
- print " Maillage du document "
print " Maillage du document ", docname
hypo.SetDocument (docname);
hypo.SetDimension(dim)
print " Maillage du document ", docname
hypo.SetDocument (docname);
hypo.SetDimension(dim)