Blender Python script to triangulate obj coming from Google Blocks
✓ Published0🌍 Public
UUtopiah
Last edited Aug 3, 2017
Created on Jul 30, 2017
A Blender Python script converts OBJ files exported from Google Blocks into triangulated OBJ and glTF formats for web-based viewing. It walks through directories, deletes existing scene objects, imports each mesh, selects all geometry, and re-exports with the `use_triangles=True` option, while conditionally calling `export_scene.gltf` when available. The code relies on Blender’s `bpy` API for scene manipulation and file I/O, with the processed result displayed on a demo page.
AI-generated description