Clean meshes automatically in Blender with Python
I wrote a little Python script to clean up imported meshes (OBJs, DXFs, etc) in Blender. It's quite useful if you often process meshes from other sources, in particular IFCs. Even better is that Blender can be run heedlessly and invoke the script automatically so you can clean meshes server side even before you open it up on my computer.
From my initial script, [Paul Spooner] at the [BlenderArtists forums] was kind enough to [rewrite it with improvements]. For the record, here it is. Simply copy and paste into the text editor and hit the `Run Script` button. It will only impact selected objects.
Although it is pretty self explanatory, what it does is weld vertices, convert tris to quads, and recalculate normals.