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 4b88a8050ae272b35a9cf6bd79af8cde7d6301e0..e83fbe9936a673b1b59cd757d956f441a26c3249 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 )