From: mzn Date: Mon, 18 Jun 2007 12:27:04 +0000 (+0000) Subject: Fix for bugs N7PAL16232, N7PAL16233. X-Git-Tag: V3_2_7~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65e61d86e9aead90aa58fd23d8ecd5fd968694b8;p=modules%2Fsmesh.git Fix for bugs N7PAL16232, N7PAL16233. --- diff --git a/src/SMESH_I/SMESH_subMesh_i.cxx b/src/SMESH_I/SMESH_subMesh_i.cxx index 4f310734b..d4e525821 100644 --- a/src/SMESH_I/SMESH_subMesh_i.cxx +++ b/src/SMESH_I/SMESH_subMesh_i.cxx @@ -458,8 +458,14 @@ GEOM::GEOM_Object_ptr SMESH_subMesh_i::GetSubShape() try { if ( _mesh_i->_mapSubMesh.find( _localId ) != _mesh_i->_mapSubMesh.end()) { TopoDS_Shape S = _mesh_i->_mapSubMesh[ _localId ]->GetSubShape(); - if ( !S.IsNull() ) + if ( !S.IsNull() ) { aShapeObj = _gen_i->ShapeToGeomObject( S ); + //mzn: N7PAL16232, N7PAL16233 + //In some cases it's possible that GEOM_Client contains the shape same to S, but + //with another orientation. + if (aShapeObj->_is_nil()) + aShapeObj = _gen_i->ShapeToGeomObject( S.Reversed() ); + } } } catch(SALOME_Exception & S_ex) {