|
OpenBF1942-Plus
Refractor 1, rebuilt from scratch
|
Functions | |
| parse (d) | |
Variables | |
| VERTEX = struct.Struct("<3f3fI2f2f") | |
| tuple | INDICES_PER = (24, 3, 24) |
| vm = load_mod(sys.argv[1], sys.argv[2]) | |
| t = parse(vm.vfs.read(sys.argv[3].lower().removesuffix(".tm") + ".tm")) | |
Reader for Refractor tree meshes (.tm, version 3). Stdlib only. Spec: docs/formats/tm.md Usage: tm.py <BF1942_DIR> <mod> <treeMesh/name> print groups and counts
| tm.parse | ( | d | ) |
-> {bbox, groups: [[(first_index, count, texture)] x 3], vertices: [tuple], indices: [int]}
| tuple tm.INDICES_PER = (24, 3, 24) |
| tm.t = parse(vm.vfs.read(sys.argv[3].lower().removesuffix(".tm") + ".tm")) |
| tm.VERTEX = struct.Struct("<3f3fI2f2f") |
| tm.vm = load_mod(sys.argv[1], sys.argv[2]) |