# Quake II MD2 fixtures (tools/fixtures.py): MD2 files written here from the dmdl_t layout (random frames with # scale / translate, distinct-vertex triangles, texture coordinates, skins, frame names in groups); references: # assimp's triangle soup of frame 0 (positions, texture coordinates: assimp flips v) and this writer's own exact # positions of every frame (CRC-32 of the f32 soup in our corner order: reversed to counter-clockwise). # tests/gen/md2.luau { { name, data, frames = n, names, skins, tris, crcs = { per frame }, assimp = { pos, uv } } } import importlib.util, os, struct, zlib INPUTS = ["tools/fixtures/_quake_ref.py"] def ref(ctx): spec = importlib.util.spec_from_file_location("_quake_ref", os.path.join(ctx.root, "tools", "fixtures", "_quake_ref.py")) m = importlib.util.module_from_spec(spec) spec.loader.exec_module(m) return m def f32(x): return struct.unpack("