mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 03:50:33 +05:00
Fix for the issue 0020885: EDF 607 SMESH: Measure tools
(See Additional Note 10037)
This commit is contained in:
parent
8e1434e86d
commit
0b0fc19f70
@ -166,7 +166,12 @@ vtkIdType SMESH_VisualObjDef::GetNodeVTKId( int theObjID )
|
||||
TMapOfIds::const_iterator i = mySMDS2VTKNodes.find(theObjID);
|
||||
return i == mySMDS2VTKNodes.end() ? -1 : i->second;
|
||||
}
|
||||
return this->GetMesh()->FindNode(theObjID)->getVtkId();
|
||||
|
||||
const SMDS_MeshNode* aNode = 0;
|
||||
if( this->GetMesh() ) {
|
||||
aNode = this->GetMesh()->FindNode(theObjID);
|
||||
}
|
||||
return aNode ? aNode->getVtkId() : -1;
|
||||
}
|
||||
|
||||
vtkIdType SMESH_VisualObjDef::GetElemObjId( int theVTKID )
|
||||
|
Loading…
Reference in New Issue
Block a user