From d92679a25f4976fb616d3593b3d9ff293a926c11 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Apr 2012 16:31:39 +0000 Subject: [PATCH] Regression of 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails --- src/StdMeshers/StdMeshers_Projection_2D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2