X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FsortFaces.py;h=ef674e182678ab8fc19a1e6413d7239e9d87cd92;hp=342a95039b5fcf5530c14f4eb6bbe06d436b016f;hb=499f29d24922cec66e41b41a0039a954993bc6df;hpb=54d6af9301c07f47a988dc85864b24b7e3fb61d9 diff --git a/src/Tools/blocFissure/gmu/sortFaces.py b/src/Tools/blocFissure/gmu/sortFaces.py index 342a95039..ef674e182 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-2022 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]