From: eap Date: Wed, 21 May 2014 11:35:24 +0000 (+0400) Subject: 22582: EDF 8036 SMESH: ConvertToQuadratic fails with theForce3d off X-Git-Tag: V7_4_0rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c50a35a8650fa9a79577248cdeae579ca15d647;p=modules%2Fsmesh.git 22582: EDF 8036 SMESH: ConvertToQuadratic fails with theForce3d off Fix force3DOutOfBoundary() --- diff --git a/src/SMESH/SMESH_MesherHelper.cxx b/src/SMESH/SMESH_MesherHelper.cxx index 16f555477..d41ff0578 100644 --- a/src/SMESH/SMESH_MesherHelper.cxx +++ b/src/SMESH/SMESH_MesherHelper.cxx @@ -242,8 +242,6 @@ void SMESH_MesherHelper::SetSubShape(const TopoDS_Shape& aSh) for ( TopExp_Explorer eF( aSh, TopAbs_FACE ); eF.More(); eF.Next() ) { const TopoDS_Face& face = TopoDS::Face( eF.Current() ); - // TopLoc_Location loc; - // Handle(Geom_Surface) surface = BRep_Tool::Surface( face, loc ); // if ( surface->IsUPeriodic() || surface->IsVPeriodic() || // surface->IsUClosed() || surface->IsVClosed() ) @@ -4214,6 +4212,8 @@ namespace { // Structures used by FixQuadraticElements() nInSolid = n; else if ( subIDs.count( n->getshapeId() )) nOnFace.push_back( n ); + else + nInSolid = n; } if ( !nInSolid || nOnFace.size() != nbN - 1 ) continue;