Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install system dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libopengl0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
7 changes: 7 additions & 0 deletions glb2mesh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#! /usr/bin/env python
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "pymeshlab",
# "trimesh",
# ]
# ///

""" Convert a GLB file to other mesh formats. """

Expand Down
6 changes: 6 additions & 0 deletions glbquery.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#! /usr/bin/env python
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "trimesh",
# ]
# ///

""" Query a GLB file for information """

Expand Down
9 changes: 9 additions & 0 deletions glbthumb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#! /usr/bin/env python
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "matplotlib",
# "numpy",
# "pyrender",
# "trimesh",
# ]
# ///

""" Generate a thumbnail image of a GLB mesh. """

Expand Down
6 changes: 6 additions & 0 deletions glbutils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "trimesh",
# ]
# ///
""" Utilities for working with glb files. """

import trimesh
Expand Down
7 changes: 7 additions & 0 deletions mesh2glb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#! /usr/bin/env python
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "pymeshlab",
# "trimesh",
# ]
# ///

""" Convert a mesh file to a GLB file. """
import sys
Expand Down
Loading