Repository navigation
Before the first release: licenses, CPU check, install docs, missing images - #12
Merged
Merged
Conversation
gltf::readNormalized rejects a model with a missing or refused image file (missing-image, exit code 1), as analysis::inspect does for import and inspect. Commands run on a file used to write a reference without a file, and uv, ktx and avif to warn image-missing. The writers now refuse a missing image, and the handling for one in uv, dedup and texture::reencode goes.
cmake --install, and so the release archives, put LICENSE in share/doc/meshtinker/ and each library's license, vendored or downloaded, in third-party/<library>/. cgltf, nlohmann/json and stb state theirs in their headers: copied to license files beside them.
basisu is built with SSE 4.1 on x86-64 and calls a kernel without a CPU check. The encoder now checks first and exits with 4.
export's text report gives sizes as the other reports do.
The heap-budget handoff goes: its questions and models move into the results, which lose the text meant for TODO.md. Public docs no longer point to TODO.md, which isn't in the repository. The README's architecture section says how commands are organized today. The experiment scripts read the local models' folder from test/corpus.local.json (corpus.mjs root) and the benchmark disks from the environment.
Docs, experiment CSVs and scripts named the local models by their folder and file names. They now use labels (collection-NN, scan-44m, statue-a ...) that test/corpus.local.json maps to those names, and node tools/corpus.mjs leaks finds any name left in tracked files. The benchmark sources script takes its local images as arguments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Easy deferred items, done before tagging v0.1.0.
Licenses in the binaries.
cmake --install, and so the release tarballs, now putLICENSEinshare/doc/meshtinker/, and each statically linked library's license inthird-party/<library>/. That covers the vendored libraries, plus libaom (withPATENTS), libavif and libwebp from their extracted archives. cgltf, nlohmann/json and stb state their license in a header, so it is copied into a file beside each one (vendor/README.md).ktxchecks the CPU. basisu is built with SSE 4.1 on x86-64 and calls a kernel without checking.ktxnow exits with 4 (cpu-unsupported) before encoding its first image, instead of dying of SIGILL. Insideoptimizethe step is left out withstep-failed. This path is untested: no machine here lacks SSE 4.1.README. Installing from a release comes first: download, checksum, extract into
~/.local, the x86-64-v2 note, and uninstalling. Building from source follows it.export --json's shape is now documented.export's text report gives sizes as1.1 kB, as the other reports do since Pretty logs: readable sizes and times, --log-level and JSON logs #11.Missing images are rejected by every command. The TODO said the missing-image handling past
importwas dead code, and running each command on themissing-imagefixture showed it wasn't. Onlyimportandinspectran the analysis that rejects a missing image. The other commands, run on a file, accepted the model and wrote a reference with no file behind it;uv,ktxandavifwarnedimage-missing, the rest said nothing.gltf::readNormalizednow rejects it the wayimportdoes (missing-image, exit code 1). The writers refuse a missing image, and the handling inuv,dedupandtexture::reencodeis gone. Chains, and sooptimize, are unaffected becauseimportrejected the model first. Listed under pending decisions for review.Docs cleanup.
heap-budget-results.md, and the text that file kept for pasting into TODO.md is gone.test/corpus.local.jsonthrough a newnode tools/corpus.mjs root local, andheap-budget.shtakes its benchmark disks fromSSD_OUT/SSD_DEVICEandHDD_OUT/HDD_DEVICE. Every relative link in the docs still resolves.Local models by label only. The docs, experiment CSVs and scripts named the local models by their folder and file names. They now use public labels (
collection-NN,scan-44m,statue-a, ...), which the gitignoredtest/corpus.local.jsonmaps to the real names. Image file names in the CSVs becameimage-N-<role>.node tools/corpus.mjs leakslists any tracked file that still holds one of those names, anddocs/validation.mdstates the rule.sources.shnow takes its four local images as arguments.Checks: the pre-commit build and ctest, and the ASan build and ctest, all pass.
cmake --installwas run to a staging prefix to check the 19 license files. Each command was run by hand on themissing-imagefixture before and after the change.🤖 Generated with Claude Code