Module obj

Module obj 

Source
Expand description

Wavefront OBJ export.

OBJ is a simple, widely-supported text-based 3D format. This exports the mesh with UVs and vertex colors (as comments).

Structs§

ObjExport
Export mesh and atlas to OBJ format bytes for writing to files.

Functions§

export_obj
Export a mesh to OBJ format. Returns (obj_content, mtl_content) as strings. Note: OBJ doesn’t support separate transparency handling, so opaque and transparent geometry are combined.