Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
23627: [IMACS] ASERIS: project point to the mesh and create a slot
[modules/smesh.git]
/
src
/
SMDS
/
SMDS_MeshCell.cxx
diff --git
a/src/SMDS/SMDS_MeshCell.cxx
b/src/SMDS/SMDS_MeshCell.cxx
index 25c2f367a4d7c58b4e798778d8d40789666c79c5..9b3635f14fef98e840c61e5430627e0a551ff86e 100644
(file)
--- a/
src/SMDS/SMDS_MeshCell.cxx
+++ b/
src/SMDS/SMDS_MeshCell.cxx
@@
-639,6
+639,9
@@
const SMDS_MeshNode* SMDS_MeshCell::GetNode(const int ind) const
int SMDS_MeshCell::GetNodeIndex( const SMDS_MeshNode* node ) const
{
+ if ( !node || node->IsNull() )
+ return -1;
+
if ( GetVtkType() == VTK_POLYHEDRON )
return static_cast< const SMDS_MeshVolume* >( this )->SMDS_MeshVolume::GetNodeIndex( node );