step-examples/12-13-writer-pathology/Wr017.stp
Sources
- prostep ivip CAx-IF "B-rep entered, tessellated mesh exported"
- bug-reporter language: "STEP lost B-rep, became mesh"
Sender
Lightweight viewers and web-based CAD tools that internally tessellate on import and have only a tessellation export path
Description
A file that arrived at the writer carrying `MANIFOLD_SOLID_BREP` geometry is re-exported as `TESSELLATED_SHELL_REPRESENTATION` (AP242) or as a mesh-of-PLANE faces approximating the original surfaces. The semantic loss is silent; the file is well-formed, but the analytical surfaces are gone. Bug-reporter language: "STEP went from B-rep to mesh", "lost analytical surfaces on round-trip", "cylinder became 36 facets", "STEP file is now triangulated".
Reproducer recipe
a STEP file that contains only `TESSELLATED_SHELL_REPRESENTATION` with triangle list, claiming to represent what was originally a `CYLINDRICAL_SURFACE`.
Expected kernel behavior
Warn and accept: detect tessellation-only content and emit a warning that round-trip from this file forward will be mesh-quality only; do not auto-fit (heal) surfaces back from triangles unless explicitly requested.
Notes
Schema-version-agnostic; both AP203 and AP242 permit tessellated representations. Provenance tier: writer-side (Q5 reclassification 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
writer-side — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'TESSELLATED_SHELL') or contains(b'TRIANGULATED_FACE')count_entity_def(b'TESSELLATED_SHELL_REPRESENTATION') >= 1 or count_entity_def(b'TRIANGULATED_FACE') >= 1
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Wr017: B-rep cylinder re-exported as tessellated mesh (silent precision loss) */ 3/* Original: MANIFOLD_SOLID_BREP with CYLINDRICAL_SURFACE r=1 h=2 */ 4/* Writer tessellated to 8-sided polygon; CYLINDRICAL_SURFACE is gone */ 5HEADER; 6FILE_DESCRIPTION(('Wr017 - tessellation re-emitted from B-rep input'),'2;1'); 7FILE_NAME('Wr017.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 8FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 9ENDSEC; 10DATA; 11#1=COORDINATES_LIST('cyl_nodes',3,((1.0,0.0,0.0),(0.707107,0.707107,0.0),(0.0,1.0,0.0),(-0.707107,0.707107,0.0),(-1.0,0.0,0.0),(-0.707107,-0.707107,0.0),(-0.0,-1.0,0.0),(0.707107,-0.707107,0.0),(1.0,0.0,2.0),(0.707107,0.707107,2.0),(0.0,1.0,2.0),(-0.707107,0.707107,2.0),(-1.0,0.0,2.0),(-0.707107,-0.707107,2.0),(-0.0,-1.0,2.0),(0.707107,-0.707107,2.0),(0.0,0.0,0.0),(0.0,0.0,2.0))); 12#2=TRIANGULATED_FACE('cyl_tess',#1,.F.,32,((1,2,10),(1,10,9),(2,3,11),(2,11,10),(3,4,12),(3,12,11),(4,5,13),(4,13,12),(5,6,14),(5,14,13),(6,7,15),(6,15,14),(7,8,16),(7,16,15),(8,1,9),(8,9,16),(17,2,1),(17,3,2),(17,4,3),(17,5,4),(17,6,5),(17,7,6),(17,8,7),(17,1,8),(18,9,10),(18,10,11),(18,11,12),(18,12,13),(18,13,14),(18,14,15),(18,15,16),(18,16,9))); 13#3=TESSELLATED_SHELL_REPRESENTATION('cylinder_approx',(#2),#1); 14ENDSEC; 15END-ISO-10303-21;