I'm working with some huge STL models broken into multiple meshes. To automate mesh refining, I'm using this code:
import bpy scene = bpy.context.scene selected = bpy.context.selected_objects for obj in selected: scene.objects.active = obj bpy.ops.object.mode_set(mode='EDIT') bpy.ops.mesh.remove_doubles() bpy.ops.mesh.normals_make_consistent() bpy.ops.object.mode_set(mode='OBJECT')
It takes a significant amount of time to process. Am I doing this right, or is there a quicker way, perhaps with bpy.data?