def smooth_verts(bm,obj):
### smooth verts
smooth_verts = []
for vert in bm.verts:
if not vert.is_boundary:
smooth_verts.append(vert)
for i in range(50):
#bmesh.ops.smooth_vert(bm,verts=smooth_verts,factor=1.0,use_axis_x=True,use_axis_y=True,use_axis_z=True)
bmesh.ops.smooth_vert(bm,verts=smooth_verts,factor=1.0,use_axis_x=True,use_axis_y=True,use_axis_z=True)
bmesh.update_edit_mesh(obj.data)
评论列表
文章目录