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)
# 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