I want to create a mesh outside of blender, using
bmesh module, and save it into an OBJ or whatever, completely through a python script.
bmesh itself is available from outside, but since I don't open blender, there would be no saving options available. How can I do that?
Late answer, but for anyone who comes across this; use BlenderProc. It allows you to use blender's python api (including bmesh) without ever opening blender. It can be installed as easily as
pip install blenderproc. The only nuance is that you'll have to use
blenderproc run script.py instead of
python script.py, but it works exactly the same way and still runs using your regular python installation. Hope this helps