From: eap Date: Wed, 18 Apr 2012 16:31:39 +0000 (+0000) Subject: Regression of 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails X-Git-Tag: TRIPOLI_323~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d92679a25f4976fb616d3593b3d9ff293a926c11;p=modules%2Fsmesh.git Regression of 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails --- diff --git a/src/StdMeshers/StdMeshers_Projection_2D.cxx b/src/StdMeshers/StdMeshers_Projection_2D.cxx index 9aef5d6cd..8255b7486 100644 --- a/src/StdMeshers/StdMeshers_Projection_2D.cxx +++ b/src/StdMeshers/StdMeshers_Projection_2D.cxx @@ -948,7 +948,7 @@ bool StdMeshers_Projection_2D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape& { SMESH_subMesh* sm = smIt->next(); SMESHDS_SubMesh* smDS = sm->GetSubMeshDS(); - if ( smDS->NbNodes() == 0 ) + if ( !smDS || smDS->NbNodes() == 0 ) continue; //if ( !is1DComputed && sm->GetSubShape().ShapeType() == TopAbs_EDGE ) //break;