52539: TC7.5.0: Smoothing - impossible to select fixed nodes

This commit is contained in:
eap 2014-10-22 16:15:00 +04:00
parent 0631ddc21d
commit ee4749bf4c
3 changed files with 10 additions and 6 deletions

View File

@ -387,8 +387,11 @@ bool SMESHGUI_MeshOp::isSubshapeOk() const
compSub,
compSub->GetShapeType() );
geomGen->RemoveObject( compSub );
if ( shared->length() > 0 )
compSub->UnRegister();
if ( shared->length() > 0 ) {
geomGen->RemoveObject( shared[0] );
shared[0]->UnRegister();
}
return ( shared->length() > 0 );
}
}

View File

@ -602,7 +602,8 @@ void SMESHGUI_SmoothingDlg::SelectionIntoArgument()
elements << QString::number( aMapIndex( i+1 ) );
aString = elements.join(" ");
}
} else if (myEditCurrentArgument == LineEditNodes && !myMesh->_is_nil() && myIO == IO ) {
} else if (myEditCurrentArgument == LineEditNodes && !myMesh->_is_nil() && myIO->isSame(IO) )
{
myNbOkNodes = SMESH::GetNameOfSelectedNodes(mySelector, IO, aString);
}

View File

@ -3456,7 +3456,7 @@ class Mesh:
##
# @brief Creates missing boundary elements around either the whole mesh or
# groups of 2D elements
# groups of elements
# @param dimension - defines type of boundary elements to create
# @param groupName - a name of group to store all boundary elements in,
# "" means not to create the group
@ -3464,7 +3464,7 @@ class Mesh:
# mesh + created boundary elements; "" means not to create the new mesh
# @param toCopyAll - if true, the whole initial mesh will be copied into
# the new mesh else only boundary elements will be copied into the new mesh
# @param groups - groups of 2D elements to make boundary around
# @param groups - groups of elements to make boundary around
# @retval tuple( long, mesh, groups )
# long - number of added boundary elements
# mesh - the mesh where elements were added to