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
Copyright update 2021
[modules/smesh.git]
/
src
/
Tools
/
MacMesh
/
MacMesh
/
GenFunctions.py
diff --git
a/src/Tools/MacMesh/MacMesh/GenFunctions.py
b/src/Tools/MacMesh/MacMesh/GenFunctions.py
index 1c476ec81a26c166c52993847cb936535bc742b6..c8067ab37b3e70bff5747021ea8e8f187684f1c8 100644
(file)
--- a/
src/Tools/MacMesh/MacMesh/GenFunctions.py
+++ b/
src/Tools/MacMesh/MacMesh/GenFunctions.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2014-20
16
EDF R&D
+# Copyright (C) 2014-20
21
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
@@
-27,10
+27,10
@@
import CutnGroup
import CompositeBox
from salome.geom import geomBuilder
import CompositeBox
from salome.geom import geomBuilder
-geompy = geomBuilder.New(
Config.theStudy
)
+geompy = geomBuilder.New()
from salome.smesh import smeshBuilder
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(
Config.theStudy
)
+smesh = smeshBuilder.New()
##########################################################################################################
##########################################################################################################
@@
-825,8
+825,7
@@
def IndexMultiOcc (Array,Element) :
def SortList (ValList, CritList):
Output = []
def SortList (ValList, CritList):
Output = []
- SortedCritList = copy.copy(CritList)
- SortedCritList.sort()
+ SortedCritList = sorted(copy.copy(CritList))
for i in range(0,len(ValList)):
if i > 0 :
if not(SortedCritList[i]==SortedCritList[i-1]):
for i in range(0,len(ValList)):
if i > 0 :
if not(SortedCritList[i]==SortedCritList[i-1]):