Salome HOME
23394: EDF - non regression test fails - problem of projection of a quadrangle face...
authoreap <eap@opencascade.com>
Mon, 21 Nov 2016 16:30:24 +0000 (19:30 +0300)
committereap <eap@opencascade.com>
Mon, 21 Nov 2016 16:30:24 +0000 (19:30 +0300)
src/SMESH/SMESH_Mesh.cxx
src/SMESH_SWIG/smeshBuilder.py

index a3e707247e2c920bd2fdbcdac14250e3cc28b802..76d2dbc05d7938820cfa847df0bb9a808f489c49 100644 (file)
@@ -1258,15 +1258,14 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h
     return;
 
   // if all meshed EDGEs will be notified then the notification is equivalent
-  // to the whole mesh clearing
-  if ( allMeshedEdgesNotified )
+  // to the whole mesh clearing, which is usually faster
+  if ( allMeshedEdgesNotified && NbNodes() > 0 )
   {
-    if ( NbNodes() > 0 )
-      Clear();
+    Clear();
   }
   else
   {
-    // notify in reverse order to avoid filling of the pool of IDs
+    // notify in reverse order to avoid filling the pool of IDs
     for ( int i = smToNotify.size()-1; i >= 0; --i )
       smToNotify[i]->AlgoStateEngine(SMESH_subMesh::MODIF_HYP,
                                      const_cast< SMESH_Hypothesis*>( hyp ));
index 47146139fa0c16b943fc66c86d09b71c6850ea53..e779c7a7ab8d220c2e8f2afaa8d66ae18f7f6fc9 100644 (file)
@@ -512,20 +512,17 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen):
     ## Sets the current mode
     #  @ingroup l1_auxiliary
     def SetEmbeddedMode( self,theMode ):
-        #self.SetEmbeddedMode(theMode)
         SMESH._objref_SMESH_Gen.SetEmbeddedMode(self,theMode)
 
     ## Gets the current mode
     #  @ingroup l1_auxiliary
     def IsEmbeddedMode(self):
-        #return self.IsEmbeddedMode()
         return SMESH._objref_SMESH_Gen.IsEmbeddedMode(self)
 
     ## Sets the current study. Calling SetCurrentStudy( None ) allows to
     #  switch OFF automatic pubilishing in the Study of mesh objects.
     #  @ingroup l1_auxiliary
     def SetCurrentStudy( self, theStudy, geompyD = None ):
-        #self.SetCurrentStudy(theStudy)
         if not geompyD:
             from salome.geom import geomBuilder
             geompyD = geomBuilder.geom
@@ -548,7 +545,6 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen):
     ## Gets the current study
     #  @ingroup l1_auxiliary
     def GetCurrentStudy(self):
-        #return self.GetCurrentStudy()
         return SMESH._objref_SMESH_Gen.GetCurrentStudy(self)
 
     ## Creates a Mesh object importing data from the given UNV file