Salome HOME
Python3 porting
authoreap <eap@opencascade.com>
Thu, 19 Oct 2017 12:30:51 +0000 (15:30 +0300)
committereap <eap@opencascade.com>
Thu, 19 Oct 2017 12:30:51 +0000 (15:30 +0300)
fix the pb with creation of StdMeshersBuilder_RadialPrism3D by mesh.Prism()

src/SMESH_SWIG/smeshBuilder.py

index 4b88a80..e83fbe9 100644 (file)
@@ -5292,7 +5292,7 @@ class algoCreator:
         if not algoType:
             algoType = self.defaultAlgoType
         if not algoType and self.algoTypeToClass:
-            algoType = self.algoTypeToClass.keys()[0]
+            algoType = sorted( self.algoTypeToClass.keys() )[0]
         if self.algoTypeToClass.has_key( algoType ):
             #print "Create algo",algoType
             return self.algoTypeToClass[ algoType ]( self.mesh, shape )