mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 12:40: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;
|
bool validId = false;
|
||||||
if ( id > 0 ) {
|
if ( id > 0 ) {
|
||||||
if ( aMesh ) {
|
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 );
|
validId = ( e && e->GetType() == SMDSType );
|
||||||
} else {
|
} else {
|
||||||
validId = ( myMesh->GetElementType( id, true ) == SMESHType );
|
validId = ( myMesh->GetElementType( id, true ) == SMESHType );
|
||||||
|
Loading…
Reference in New Issue
Block a user