IPAL0054674: Wrong mesh icon after mesh modification

+ minor doc imp
This commit is contained in:
eap 2020-05-18 21:31:22 +03:00
parent 7f8c5c9aa7
commit 928a9967c9
3 changed files with 8 additions and 2 deletions

View 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
=============================================

View 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 );

View 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)