]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IPAL0054674: Wrong mesh icon after mesh modification V9_5_0b1
authoreap <eap@opencascade.com>
Mon, 18 May 2020 18:31:22 +0000 (21:31 +0300)
committereap <eap@opencascade.com>
Mon, 18 May 2020 18:31:22 +0000 (21:31 +0300)
+ minor doc imp

doc/salome/gui/SMESH/input/tui_grouping_elements.rst
src/SMESH_I/SMESH_Mesh_i.cxx
src/SMESH_SWIG/smeshBuilder.py

index 58bc4a3b639e948eca750210df1989691ec06502..01bcf9b31c859848f3a3f384cf1f6bf351293a16 100644 (file)
@@ -108,6 +108,9 @@ Creating groups of entities basing on nodes of other groups
 .. image:: ../images/dimgroup_tui1.png
        :align: center
 
+
+.. _tui_groups_by_sharp_edges: 
+
 Creating face groups separated by sharp edges
 =============================================
 
index 93cdb1ea95550f61f7c057167f60cd5b8fbc7a66..52f7e9e9cd067d516207c2aca19b839a7a43eb7a 100644 (file)
@@ -663,8 +663,8 @@ SMESH_Mesh_i::AddHypothesis(GEOM::GEOM_Object_ptr       aSubShape,
   {
     _gen_i->AddHypothesisToShape( mesh, aSubShape, anHyp );
 
-    int newNbMeshEnt = _impl->NbNodes() + _impl->GetMeshDS()->NbElements();
-    if ( newNbMeshEnt != prevNbMeshEnt )
+    //int newNbMeshEnt = _impl->NbNodes() + _impl->GetMeshDS()->NbElements();
+    if ( prevNbMeshEnt > 0 /*newNbMeshEnt != prevNbMeshEnt*/ )
       _gen_i->UpdateIcons( mesh );
   }
   if(MYDEBUG) MESSAGE( " AddHypothesis(): status = " << status );
index 18409ce90300204f239547c2cc15bae4e841c4d6..cb0191fccf112ce1f2e4ff25dfaa441cf5f5c581 100644 (file)
@@ -2091,6 +2091,9 @@ class Mesh(metaclass = MeshMeta):
 
         Parameters:
                 submeshes: list of lists of :class:`sub-meshes <SMESH.SMESH_subMesh>`
+
+        Warning: the method is for setting the order for all sub-meshes at once:
+                 SetMeshOrder( [ [sm1, sm2, sm3], [sm4, sm5] ] )
         """
 
         return self.mesh.SetMeshOrder(submeshes)