Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mise à niveau python
[modules/smesh.git]
/
src
/
Tools
/
blocFissure
/
gmu
/
sortFaces.py
diff --git
a/src/Tools/blocFissure/gmu/sortFaces.py
b/src/Tools/blocFissure/gmu/sortFaces.py
index 342a95039b5fcf5530c14f4eb6bbe06d436b016f..0338f3a3757e9c7da45716bcbc2d523c423ced5c 100644
(file)
--- a/
src/Tools/blocFissure/gmu/sortFaces.py
+++ b/
src/Tools/blocFissure/gmu/sortFaces.py
@@
-1,5
+1,5
@@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
-# Copyright (C) 2014-202
0
EDF R&D
+# Copyright (C) 2014-202
1
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
#
# 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
#
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-
"""tri par surface de faces"""
import logging
"""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()
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]
return facesSorted, l_surfaces[0][0], l_surfaces[-1][0]