Ip055 — 3MF build item references a non-existent objectid → silent total geometry loss

§12.15 import-format parser robustness (sub-class: dangling-object-reference)

P2 — spec deviation (no data loss)

spec-violation

Sources

Description

The `<resources>` section declares one `<object id="1">` carrying the mesh, but the `<build><item objectid="99"/>` names object 99, which does not exist. The build section is the list of objects actually placed in the output; an item that resolves to nothing means the assembled scene is empty even though a complete, valid mesh sits in `<resources>`. A robust loader must diagnose the dangling `objectid`; a lenient one emits an empty result and no error.

Reproducer recipe

an OPC/ZIP package whose model part declares `<object id="1">` with a valid 4-vertex / 4-triangle tetrahedron mesh but whose `<build>` contains only `<item objectid="99"/>`. Packed STORED with fixed 1980-01-01 timestamps.

Expected kernel behavior

resolve every `<item objectid>` against the declared objects and reject an unresolved reference with a diagnostic naming the missing id; never return an empty model silently when the file contains real geometry the build section failed to reference.

Notes

Cross-oracle: trimesh 4.12.2 (+networkx/lxml) loads 0 vertices / 0 faces — complete valid mesh in, empty scene out, no diagnostic — verified 2026-08-11. A container-format instance of the corpus's silent-total-geometry-loss class. Synonyms: "3MF dangling objectid", "build item references missing object", "3mf empty build resolution", "unresolved objectid silent empty". Provenance tier: bytes-only.

Expected validation

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Byte assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1PK!=U!BB[Content_Types].xml<?xml version="1.0" encoding="UTF-8"?>
2<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
3<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
4<Default Extension="model" ContentType="application/vnd.ms-package.3dmanufacturing-3dmodel+xml"/>
5</Types>
6PK!\LH#_rels/.rels<?xml version="1.0" encoding="UTF-8"?>
7<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
8<Relationship Target="/3D/3dmodel.model" Id="rel0" Type="http://schemas.microsoft.com/3dmanufacturing/2013/01/3dmodel"/>
9</Relationships>
10PK!t²ð553D/3dmodel.model<?xml version="1.0" encoding="UTF-8"?>
11<model unit="millimeter" xml:lang="en-US" xmlns="http://schemas.microsoft.com/3dmanufacturing/core/2015/02">
12<resources>
13<object id="1" type="model">
14<mesh>
15<vertices>
16<vertex x="0" y="0" z="0"/>
17<vertex x="1" y="0" z="0"/>
18<vertex x="0" y="1" z="0"/>
19<vertex x="0" y="0" z="1"/>
20</vertices>
21<triangles>
22<triangle v1="0" v2="1" v3="2"/>
23<triangle v1="0" v2="1" v3="3"/>
24<triangle v1="0" v2="2" v3="3"/>
25<triangle v1="1" v2="2" v3="3"/>
26</triangles>
27</mesh>
28</object>
29</resources>
30<build><item objectid="99"/></build>
31</model>
32PK!=U!BB€[Content_Types].xmlPK!\LH#€s_rels/.relsPK!t²ð55€¢3D/3dmodel.modelPK¸