X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHEXABLOCK_SWIG%2Fhexablock.py;h=5b422849aea8b14711460a37009da9d83e3e4d7a;hb=5347e8abe119e8704d59c83638836f0fd94c732e;hp=531290dce01ed859cc493d4682375a138754a1ec;hpb=81738b4db527ae6b71bf4ef7129fac5936c0b47c;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK_SWIG/hexablock.py b/src/HEXABLOCK_SWIG/hexablock.py index 531290d..5b42284 100644 --- 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) + ### stream = doc.getFirstExplicitShape () + ### if stream != None : + ### shape = geompy.RestoreShape (stream) + ### else : shape = geompy.MakeBox(0, 0, 0, 1, 1, 1) + 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 - print " Maillage du document " print " Maillage du document ", docname hypo.SetDocument (docname); hypo.SetDimension(dim)