import-examples/12-15-import-formats/Ip001.obj
Sources
- Pattern-mined from assimp/assimp#1047 + cnr-isti-vclab/meshlab (Apache-2.0 / GPL-3.0 — pattern only, no bytes copied).
Description
A Wavefront OBJ defines 3 vertices but a face record `f 1 2 5` references vertex index 5. OBJ indices are 1-based and must be ≤ the number of preceding `v` records. Strict loaders (assimp) abort the import with an out-of-range error; lenient loaders (MeshLab) clamp or drop the face and load a partial mesh — a cross-oracle divergence on identical bytes.
Reproducer recipe
an OBJ with exactly three `v` lines followed by `f 1 2 5` (the `5` exceeds the 3-vertex table).
Expected kernel behavior
reject with a diagnostic naming the offending index/record, or clamp-and-warn; never silently emit an out-of-bounds vertex reference into downstream geometry.
Notes
Cross-oracle: trimesh 4.12 raises IndexError (index 4 out of bounds for size 3); assimp aborts; MeshLab clamps — verified 2026-07-12. Synonyms: "OBJ face index out of range", "vertex index exceeds count", "OBJ OOB face reference", "index-past-end mesh face". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'f 1 2 5')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1# Ip001: OBJ face references vertex index 5, but only 3 vertices are defined. 2# assimp aborts import (out-of-range index); MeshLab clamps/loads. Cross-oracle divergence. 3v 0.0 0.0 0.0 4v 1.0 0.0 0.0 5v 0.0 1.0 0.0 6f 1 2 5