added uv unwarp export

This commit is contained in:
ykcheungab
2026-09-25 17:10:05 +08:00
parent c377c14474
commit f91ac9d3db
8 changed files with 1065 additions and 220 deletions
+7 -1
View File
@@ -118,12 +118,18 @@ def test_manifest_writes_without_export(revision_dir: Path, tmp_path: Path) -> N
assert loaded["sensor"] == "finger"
assert loaded["revision"] == "r01"
assert loaded["profile"] == "compute"
assert loaded["expected_artifacts"] == [
assert loaded["expected_artifacts"][:4] == [
"mesh.npz",
"housing.npz",
"camera_intrinsics.npz",
"world_to_cam.npy",
]
# The unwarp/valid-mask map is built by the export itself (SDK precompute); listing it
# makes a missing mask fail the export instead of shipping a bundle that renders grey.
# Its name embeds the profile's source_scale (`scaled_map_cache_path`), so match the
# family rather than one pinned value.
map_name = loaded["expected_artifacts"][4]
assert map_name.startswith("unroll_map_uv_s") and map_name.endswith(".npz")
assert loaded["source_blend"].endswith("geometry.blend")