X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FsortFaces.py;h=0338f3a3757e9c7da45716bcbc2d523c423ced5c;hp=342a95039b5fcf5530c14f4eb6bbe06d436b016f;hb=b4a070b88fa66729853637acf3f5aa91a429a7d7;hpb=34ab0eb4e96eaf71e934f90f78ebd5b45a216889 diff --git a/src/Tools/blocFissure/gmu/sortFaces.py b/src/Tools/blocFissure/gmu/sortFaces.py index 342a95039..0338f3a37 100644 --- a/src/Tools/blocFissure/gmu/sortFaces.py +++ b/src/Tools/blocFissure/gmu/sortFaces.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2014-2020 EDF R&D +# Copyright (C) 2014-2021 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # - """tri par surface de faces""" import logging @@ -29,6 +28,6 @@ def sortFaces(facesToSort): l_surfaces = [(geompy.BasicProperties(face)[1], i, face) for i, face in enumerate(facesToSort)] l_surfaces.sort() - facesSorted = [face for surf, i, face in l_surfaces] + facesSorted = [face for _, i, face in l_surfaces] return facesSorted, l_surfaces[0][0], l_surfaces[-1][0]