import-examples/12-15-import-formats/Ip032.ply
Sources
- Pattern-mined from cnr-isti-vclab/meshlab#1624 (GPL-3.0 — pattern only, no bytes copied).
Description
An ASCII PLY vertex element declares a custom, non-standard property that is *list-typed* rather than scalar: `property list uchar int neighbor_indices`, i.e. each vertex row carries its own count-prefixed integer list (here, 2 neighbor indices) in addition to `x y z`. The header is fully self-describing (count-type `uchar`, value-type `int`, declared per PLY spec) and every vertex row supplies exactly the count it declares. ml#1624 reports this construct — previously silently skipped by MeshLab — now over-reads or crashes, a regression from tolerant to fragile on a file the spec permits. Distinct from Ip009 (extra *scalar* fields) and Ip015 (zero-count element): this is a *list-typed* custom property on the vertex element, which a naive property-skipper (that assumes every unknown property is a fixed-width scalar) mishandles by advancing the read cursor by a wrong, fixed byte count.
Reproducer recipe
an ASCII PLY with `element vertex 3`, `property float x/y/z`, then `property list uchar int neighbor_indices` before `end_header`; each of the 3 vertex rows carries `x y z <count> <count ints>` (here count=2), followed by a normal triangular face element.
Expected kernel behavior
skip unrecognized properties by consuming exactly their declared per-row structure (read the list's own count prefix and skip that many list elements), never assume unknown properties are fixed-width scalars.
Notes
Live-verified 2026-07-17 with trimesh 4.12.2: loads cleanly, correctly skips the unrecognized `neighbor_indices` list property per vertex row and returns the intended 3 vertices / 1 face with correct coordinates — no exception, no corruption. ml#1624 documents MeshLab's PLY importer regressing from silent-ignore to over-read/crash on this same list-typed unknown-property pattern. Synonyms: "PLY unknown list property crash", "custom per-vertex list field", "PLY property skip assumes scalar width", "non-standard vertex list property". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'property list uchar int neighbor_indices')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ply 2format ascii 1.0 3element vertex 3 4property float x 5property float y 6property float z 7property list uchar int neighbor_indices 8element face 1 9property list uchar int vertex_indices 10end_header 110.0 0.0 0.0 2 1 2 121.0 0.0 0.0 2 0 2 130.0 1.0 0.0 2 0 1 143 0 1 2