6 faces = geom_builder.SubShapeAllSorted(mechanic, geom_builder.ShapeType["FACE"])
8 # create a group of faces to be smoothed
9 group_smooth = mesh.GroupOnGeom(faces[3], "Group of faces (smooth)", SMESH.FACE)
13 # boolean SmoothObject(Object, IDsOfFixedNodes, MaxNbOfIterations, MaxAspectRatio, Method)
14 res = mesh.SmoothObject(group_smooth, [], 20, 2., smesh_builder.CENTROIDAL_SMOOTH)
15 print("\nSmoothing ... ", end=' ')
16 if not res: print("failed!")