Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.22 KB

README.md

File metadata and controls

19 lines (14 loc) · 1.22 KB

mesh-convert

Python application

Try mesh to GLB conversion in Google ColabOpen in Colab

Mesh conversion pipelines for use in NIH 3D workflows. NIH 3D uses GLB as its main format.
This repo provides a script to go from meshes to GLB, and another to go from GLB to other mesh formats. The other mesh formats include STL, PLY, OBJ, WRL and X3D. Basically whatever formats Trimesh or PyMeshLab support.

X3D and WRL are the two formats that PyMeshLab are used for, since Trimesh does not support them. Going between PyMeshLab and Trimesh, PLY is used as an intermediary format. Because PLY is a relatively simple format, many features could be lost in translation. In particular any scene graph hierarchy, lighting or viewing parameters, or animation will not be retained.

The GLB thumbnail creation example (work-in-progress): Open in Colab