Tudo: Primeiro commit

This commit is contained in:
mguinhos committed 2026-09-30 21:10:51 -03:00
commit 06a90928dc
4633 files changed
+6327263

No files matched your search

@@ -0,0 +1,11 @@
import bpy, bmesh, os
bpy.ops.wm.read_factory_settings(use_empty=True)
R = os.path.expanduser("~/robo_movel/render")
bpy.ops.wm.obj_import(filepath=os.path.join(R, "robo_bp.obj"), up_axis="Z", forward_axis="Y")
objs = [o for o in bpy.context.scene.objects if o.type == "MESH"]
for o in objs:
bm = bmesh.new(); bm.from_mesh(o.data)
bmesh.ops.remove_doubles(bm, verts=bm.verts, dist=1e-6)
bm.to_mesh(o.data); bm.free()
bpy.data.libraries.write(os.path.join(R, "robo_bp_import.blend"), set(objs), fake_user=True)
print("ok", len(objs), sum(len(o.data.vertices) for o in objs))