import-examples/12-15-import-formats/Ip048.drc
Sources
- Pattern-mined from google/draco#1169 header-validation surface (Apache-2.0 — pattern only
- bytes regenerated via DracoPy, not copied).
Description
The 11-byte Draco header's `encoder_method` byte (offset 8) selects the mesh connectivity codec; only 0 (sequential) and 1 (Edgebreaker) are defined. A value outside that set must be rejected before the decoder dispatches to a non-existent method.
Reproducer recipe
Encode the tetra base mesh (method byte = 1, Edgebreaker); set file offset 8 to `0x02` (undefined method). All other bytes untouched.
Expected kernel behavior
Validate the method byte against the known enumeration; reject an unknown method with a clear diagnostic rather than dispatching on it.
Notes
DracoPy 2.0.0 result observed: `FileTypeException: Input mesh is not draco encoded`. Synonyms: "unknown codec method", "invalid encoder-method enum", "unsupported connectivity method". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'DRACO')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1DRACO ßÿ"ÿ ( 2³
ÂB ÿ? ?