prevent MakeMesh() from crash if myShapeIDMap.IsEmpty()

This commit is contained in:
eap 2010-03-03 13:58:32 +00:00
parent 00c9fb50be
commit 859674eaf0

View File

@ -3922,7 +3922,7 @@ bool SMESH_Pattern::MakeMesh(SMESH_Mesh* theMesh,
point->myXYZ.Z()); point->myXYZ.Z());
nodesVector [ pIndex ] = node; nodesVector [ pIndex ] = node;
if ( true /*subMeshDS*/ ) { if ( !S.IsNull() /*subMeshDS*/ ) {
// !!!!! do not merge new nodes with ones existing on submeshes (see method comment) // !!!!! do not merge new nodes with ones existing on submeshes (see method comment)
switch ( S.ShapeType() ) { switch ( S.ShapeType() ) {
case TopAbs_VERTEX: { case TopAbs_VERTEX: {