step-examples/12-13-writer-pathology/Wr052.stp
Sources
- Pattern-mined from OCCT/tests/bugs/step/bug32817_1 (LGPL-clean — pattern only, no bytes copied). OCCT method `STEPControl_Writer::Transfer` on a single-line edge.
Description
A STEP writer emits an EDGE_CURVE whose `edge_geometry` slot is filled by an unbounded LINE entity rather than a TRIMMED_CURVE(LINE, t0, t1) or a SURFACE_CURVE with explicit param bookkeeping. The vertices nominally define the edge's domain, but the LINE itself carries no parametric extent, so receivers that traverse the LINE directly (rather than the EDGE_CURVE bookkeeping) walk into an unbounded range.
Reproducer recipe
a single EDGE_CURVE with edge_geometry = #(LINE). No TRIMMED_CURVE, no SURFACE_CURVE wrapper. Two distinct VERTEX_POINTs delimit the topological edge but the geometric curve is intrinsically unbounded.
Expected kernel behavior
heal — re-bound the LINE via implicit vertex-parameter projection, or wrap it in a TRIMMED_CURVE post-load.
Notes
Synonyms: "EDGE_CURVE points to unbounded LINE", "STEP writer emits untrimmed curve", "missing TRIMMED_CURVE wrapper around LINE", "line-edge without parametric trim". See also Twi248 (null-3D-curve sibling case). Provenance tier: writer-side (Q5 reclassification 2026-07-01).
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Provenance tier
writer-side — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'EDGE_CURVE')contains(b'LINE')
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 1n_vertices_total == 2
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Wr052: EDGE_CURVE references unbounded LINE without TRIMMED_CURVE wrap */ 3HEADER; 4FILE_DESCRIPTION(('Wr052'),'2;1'); 5FILE_NAME('Wr052.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(0.0,1.0,0.0)); 12#3=VERTEX_POINT('',#1); 13#4=VERTEX_POINT('',#2); 14#5=DIRECTION('',(0.0,1.0,0.0)); 15#6=VECTOR('',#5,1.0); 16#7=LINE('',#1,#6); 17#8=EDGE_CURVE('',#3,#4,#7,.T.); 18#9=CARTESIAN_POINT('',(0.0,0.0,0.0)); 19#10=DIRECTION('',(0.0,0.0,1.0)); 20#11=DIRECTION('',(1.0,0.0,0.0)); 21#12=AXIS2_PLACEMENT_3D('',#9,#10,#11); 22#13=PLANE('',#12); 23#14=ORIENTED_EDGE('',$,$,#8,.T.); 24#15=EDGE_LOOP('',(#14)); 25#16=FACE_OUTER_BOUND('',#15,.T.); 26#17=ADVANCED_FACE('',(#16),#13,.T.); 27#18=OPEN_SHELL('',(#17)); 28#19=SHELL_BASED_SURFACE_MODEL('',(#18)); 29#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 30#9051=PRODUCT('Wr052','Wr052','',(#9050)); 31#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 32#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 33#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 34#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 35#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 36#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 37#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 38#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 39#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 40#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#19),#9060); 41#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 42ENDSEC; 43END-ISO-10303-21;