Salome HOME
23111: [CEA 1541] copy.deepcopy does not work on an objet of type Mesh
authoreap <eap@opencascade.com>
Mon, 6 Jul 2015 13:41:46 +0000 (16:41 +0300)
committereap <eap@opencascade.com>
Mon, 6 Jul 2015 13:41:46 +0000 (16:41 +0300)
src/SMESH_SWIG/smeshBuilder.py

index c6e1eab..430b1fb 100644 (file)
@@ -4773,8 +4773,11 @@ class meshEditor(SMESH._objref_SMESH_MeshEditor):
             return getattr( self.mesh, name )
         if name == "ExtrusionAlongPathObjX":
             return getattr( self.mesh, "ExtrusionAlongPathX" )
-        print name, "NOT FOUND"
+        print name, "meshEditor: attribute '%s' NOT FOUND" % name
         return None
+    def __deepcopy__(self, memo=None):
+        new = self.__class__()
+        return new
     pass
 omniORB.registerObjref(SMESH._objref_SMESH_MeshEditor._NP_RepositoryId, meshEditor)