From: eap Date: Mon, 18 May 2020 18:31:22 +0000 (+0300) Subject: IPAL0054674: Wrong mesh icon after mesh modification X-Git-Tag: V9_5_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=928a9967c95638ed1b0bc2a1cc60ae7ed1643774;ds=inline IPAL0054674: Wrong mesh icon after mesh modification + minor doc imp --- diff --git a/doc/salome/gui/SMESH/input/tui_grouping_elements.rst b/doc/salome/gui/SMESH/input/tui_grouping_elements.rst index 58bc4a3b6..01bcf9b31 100644 --- a/doc/salome/gui/SMESH/input/tui_grouping_elements.rst +++ b/doc/salome/gui/SMESH/input/tui_grouping_elements.rst @@ -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 ============================================= diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 93cdb1ea9..52f7e9e9c 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -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 ); diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index 18409ce90..cb0191fcc 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -2091,6 +2091,9 @@ class Mesh(metaclass = MeshMeta): Parameters: submeshes: list of lists of :class:`sub-meshes ` + + 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)