Salome HOME
[bos #38643][EDF] Laplacian Smoothing 2D.
[modules/smesh.git] / doc / examples / modifying_meshes_ex21.py
index 4b9edc3a274de867611345650506886b656267ae..c351259f017dbe8ec7c6cacec95237b8ce4ae733 100644 (file)
@@ -11,7 +11,8 @@ group_smooth = mesh.GroupOnGeom(faces[3], "Group of faces (smooth)", SMESH.FACE)
 # perform smoothing
 
 # boolean SmoothObject(Object, IDsOfFixedNodes, MaxNbOfIterations, MaxAspectRatio, Method)
-res = mesh.SmoothObject(group_smooth, [], 20, 2., smesh_builder.CENTROIDAL_SMOOTH)
+res0 = mesh.SmoothObject(group_smooth, [], 20, 2., smesh_builder.CENTROIDAL_SMOOTH)
+res1 = mesh.SmoothObject(group_smooth, [], 20, 2., smesh_builder.LAPLACIAN_SMOOTH)
 print("\nSmoothing ... ", end=' ')
-if not res: print("failed!")
+if not (res0 and res1): print("failed!")
 else:       print("done.")