Regression of 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails

This commit is contained in:
eap 2012-04-18 16:31:39 +00:00
parent 5aacc45760
commit d92679a25f

View File

@ -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;