]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22582: EDF 8036 SMESH: ConvertToQuadratic fails with theForce3d off
authoreap <eap@opencascade.com>
Wed, 21 May 2014 11:35:24 +0000 (15:35 +0400)
committereap <eap@opencascade.com>
Wed, 21 May 2014 11:35:24 +0000 (15:35 +0400)
 Fix force3DOutOfBoundary()

src/SMESH/SMESH_MesherHelper.cxx

index 16f555477d17f08a72ef69ae07dfafb911bc7214..d41ff05787741281e1ecb822fb3b89566b6aed2d 100644 (file)
@@ -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;