]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021330]: EDF 1919 SMESH: Convert to quadratic gives wrong elements
authoreap <eap@opencascade.com>
Tue, 2 Aug 2011 09:35:37 +0000 (09:35 +0000)
committereap <eap@opencascade.com>
Tue, 2 Aug 2011 09:35:37 +0000 (09:35 +0000)
     if ( surface->IsUPeriodic() || surface->IsVPeriodic() ||
+         surface->IsUClosed()   || surface->IsVClosed() )

src/SMESH/SMESH_MesherHelper.cxx

index dd79438606bbf89049efc3740d35e5a8456aa865..6b00df0583518b3f85dcf6b4bc4ff318fb26d266 100644 (file)
@@ -229,7 +229,8 @@ void SMESH_MesherHelper::SetSubShape(const TopoDS_Shape& aSh)
     TopLoc_Location loc;
     Handle(Geom_Surface) surface = BRep_Tool::Surface( face, loc );
 
-    if ( surface->IsUPeriodic() || surface->IsVPeriodic() )
+    if ( surface->IsUPeriodic() || surface->IsVPeriodic() ||
+         surface->IsUClosed()   || surface->IsVClosed() )
     {
       //while ( surface->IsKind(STANDARD_TYPE(Geom_RectangularTrimmedSurface )))
       //surface = Handle(Geom_RectangularTrimmedSurface)::DownCast( surface )->BasisSurface();