Skip to content

Instantly share code, notes, and snippets.

View mikedh's full-sized avatar

Michael Dawson-Haggerty mikedh

View GitHub Profile
import os
import trimesh
import numpy as np
tol_norm = 1e-4
def test_align(align):
"""
import os
import time
import trimesh
import numpy as np
tol_norm = 1e-4
def test_align(align):
@mikedh
mikedh / cust16.glb.header.json
Created July 28, 2022 17:47
Byte alignment error
{
"scene": 0,
"scenes": [{ "nodes": [0] }],
"asset": {
"version": "2.0",
"generator": "https://github.com/mikedh/trimesh"
},
"accessors": [
{
"componentType": 5125,
import os
cwd = os.path.abspath(os.path.expanduser(os.path.dirname(__file__)))
def backup(frag):
"""
Parse a string backwards to find the first value which can
be a variable name, parenthisized or bracked expression.
@mikedh
mikedh / report.md
Last active January 17, 2025 21:36
Trimesh.load back-port accuracy

Running: python corpus.py -compare

  • Comparing 4.6.0 against 4.5.3
  • Return types matched 99.785% of the time
  • Loaded 758 vs Loaded 668