X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FfusionMaillageAttributionDefaut.py;h=ddcccec0f287bd6c228efc9e84d334daf1b1a817;hb=3b570ddfbea2964cea7fe285a5722c45bf0675ee;hp=22827d2801eaef5b0a4cb761cd056244d6cfe297;hpb=415e5989ba936fba99bd27ebb54055ef380b33be;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/fusionMaillageAttributionDefaut.py b/src/Tools/blocFissure/gmu/fusionMaillageAttributionDefaut.py index 22827d280..ddcccec0f 100644 --- a/src/Tools/blocFissure/gmu/fusionMaillageAttributionDefaut.py +++ b/src/Tools/blocFissure/gmu/fusionMaillageAttributionDefaut.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2014-2021 EDF R&D +# Copyright (C) 2014-2024 EDF # # This library is free software; you can redistribute it and/or -# modify it under the terms of th79e GNU Lesser General Public +# modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # @@ -49,7 +49,7 @@ def fusionMaillageDefaut(maillageSain, maillageDefautCible, maillageInterneCible maillagesCoupes = list() # On crée une liste contenant le maillage de chaque face. - listOfNewMeshes = createNewMeshesFromCorner(maillageDefautCible, listOfCorners) + listOfNewMeshes = createNewMeshesFromCorner(maillageDefautCible, listOfCorners, nro_cas) i_aux = 0 while i_aux < len(listOfNewMeshes): @@ -89,6 +89,7 @@ def fusionMaillageDefaut(maillageSain, maillageDefautCible, maillageInterneCible listOfInternMeshes = [maillageInterneCible] + [msh.GetMesh() for msh in maillagesNonCoupes] newMaillageInterne = smesh.Concatenate(listOfInternMeshes, 1, 1, 1e-05, False) + putName(newMaillageInterne, 'newInternalBoundary', i_pref=nro_cas) facesEnTrop = list() criteres = [smesh.GetCriterion(SMESH.FACE, SMESH.FT_BelongToGenSurface, SMESH.FT_Undefined, face) for face in facesNonCoupees] @@ -100,6 +101,4 @@ def fusionMaillageDefaut(maillageSain, maillageDefautCible, maillageInterneCible newZoneDefaut_skin = maillageSain.GetMesh().CutListOfGroups([zoneDefaut_skin], facesEnTrop, 'newZoneDefaut_skin') - putName(newMaillageInterne, 'newInternalBoundary', i_pref=nro_cas) - return newZoneDefaut_skin, newMaillageInterne