mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 07:00:33 +05:00
Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge" issue.
This commit is contained in:
parent
af3910d143
commit
5d4ed5201b
@ -741,7 +741,11 @@ void SMESHGUI_ExtrusionDlg::onTextChange (const QString& theNewText)
|
||||
bool validId = false;
|
||||
if ( id > 0 ) {
|
||||
if ( aMesh ) {
|
||||
const SMDS_MeshElement * e = aMesh->FindElement( id );
|
||||
const SMDS_MeshElement * e;
|
||||
if (SMDSType == SMDSAbs_Node)
|
||||
e = aMesh->FindNode( id );
|
||||
else
|
||||
e = aMesh->FindElement( id );
|
||||
validId = ( e && e->GetType() == SMDSType );
|
||||
} else {
|
||||
validId = ( myMesh->GetElementType( id, true ) == SMESHType );
|
||||
|
Loading…
Reference in New Issue
Block a user