]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
authoreap <eap@opencascade.com>
Wed, 14 Nov 2012 12:40:47 +0000 (12:40 +0000)
committereap <eap@opencascade.com>
Wed, 14 Nov 2012 12:40:47 +0000 (12:40 +0000)
    Avoid dump failure if create a sub-mesh on the main shape
    extracted from it-self

    def Assign(self, algo, mesh, geom):
         ...
-        if not geom:
+        if not geom or geom.IsSame( mesh.geom ):
             self.geom = mesh.geom

src/SMESH_SWIG/smesh_algorithm.py

index a037dd8683c61c3ec3dd0acbb28fbcae073ec7d8..9b3acf00d61b45b9a20cbdbdef80aceb522d8927 100644 (file)
@@ -195,7 +195,7 @@ class Mesh_Algorithm:
             raise RuntimeError, "Attemp to create " + algo + " algoritm on None shape"
         self.mesh = mesh
         name = ""
-        if not geom:
+        if not geom or geom.IsSame( mesh.geom ):
             self.geom = mesh.geom
         else:
             self.geom = geom