Salome HOME
python
authorGérald NICOLAS <gerald.nicolas@edf.fr>
Thu, 26 Jan 2023 16:09:49 +0000 (17:09 +0100)
committerGérald NICOLAS <gerald.nicolas@edf.fr>
Wed, 10 May 2023 08:35:32 +0000 (10:35 +0200)
src/PythonAddons/macros/midSurface/feature.py
src/PythonAddons/macros/midSurface/surfaceMediane.py

index 44f5bcbfe4458eb488599f2807b361f9ef51ff26..fd2027f48966b35bd90a2b5b47f7cfb6c6f04afd 100755 (executable)
@@ -91,11 +91,11 @@ class midSurface(model.Feature):
                 print("l_options : '{}'".format(l_options))
                 s_med = SurfaceMediane(l_options)
                 with open("/tmp/grr_1", "w") as fic :
-                      fic.write("{}".format(dir(s_med)))
-                      fic.write("\n{}".format(filepath))
+                    fic.write("{}\n".format(dir(s_med)))
+                    fic.write("\nFichier : {}".format(filepath))
                 erreur, message = s_med.surf_fic_cao (filepath)
                 with open("/tmp/grr_2", "w") as fic :
-                      fic.write("erreur = {}, message = '{}'".format(erreur, message))
+                    fic.write("erreur = {}, message = '{}'".format(erreur, message))
                 del s_med
                 if erreur:
                     self.setError(message)
index 67c233d2081c61f0368c1a14c3f09351159abf0f..8949c093d7521ac56022ec98bbf627df2b8e27a2 100755 (executable)
@@ -788,7 +788,7 @@ Sorties :
 
 # 2. Traitement selon la forme de la face
 # 2.1. Face plane
-    if forme in ( geompy.kind.DISK_CIRCLE, geompy.kind.DISK_ELLIPSE, geompy.kind.POLYGON, geompy.kind.PLANE, geompy.kind.PLANAR):
+    if forme in ( geompy.kind.DISK_CIRCLE, geompy.kind.DISK_ELLIPSE, geompy.kind.POLYGON, geompy.kind.PLANE, geompy.kind.PLANAR ):
       erreur, face = self._cree_face_mediane_plane ( geompy, solide, caract_face_1, caract_face_2, n_recur )
 
 # 2.2. Face cylindrique