From 2c50a35a8650fa9a79577248cdeae579ca15d647 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 21 May 2014 15:35:24 +0400 Subject: [PATCH] 22582: EDF 8036 SMESH: ConvertToQuadratic fails with theForce3d off Fix force3DOutOfBoundary() --- src/SMESH/SMESH_MesherHelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2