step-examples/12-3c-faces/Tfa126.stp
Sources
- synthesized — no external source cited
Description
FACE_INNER_BOUND wrapping a non-closed 2-edge wire crashes the reader (SIGSEGV) — same invalid-bound-topology class as Tfa085/Tfa106/Tfa118, not a FixLoopWire crossing-loop bug
Reproducer recipe
Expected kernel behavior
Before building a face, verify that every bound wire actually closes — the last edge's end vertex must coincide, within tolerance, with the first edge's start vertex. A `FACE_INNER_BOUND` wrapping a 2-edge loop that does not close must be either closed by inserting the missing segment when the gap is within tolerance, or dropped with a diagnostic naming the bound while the face is still built from its remaining valid bounds; an unclosed bound must never be walked as though it were closed, and reading one must not terminate the process.
Notes
Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed FixLoopWire's outer/inner-loop assumption breaks when wires spatially cross; that method is never reached (crash occurs first), and the actual structural cause is an invalid non-closed 2-edge bound, not a crossing-loop scenario. **See also**: Tfa085, Tfa106, Tfa118 (same non-closed-bound crash family). Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14. Synonyms: "non-closed 2-edge inner bound crashes reader", "invalid bound topology, not crossing-loop merge bug".
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2HEADER; 3FILE_DESCRIPTION(('dodgy-step-files wave 27 face fixtures'),'2;1'); 4FILE_NAME('','2026-06-15T00:00:00',(''),(''), 5 'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=APPLICATION_CONTEXT('automotive design'); 10#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2009,#1); 11/* Tfa126 - FixLoopWire: crossing-wires defect 12 * Defect: Face has outer wire and inner wire (hole) that cross. 13 * FixLoopWire's nested-loop assumption fails on overlapping wires. 14 */ 15 16#10=CARTESIAN_POINT('o',(0.0,0.0,0.0)); 17#11=DIRECTION('z',(0.0,0.0,1.0)); 18#12=DIRECTION('x',(1.0,0.0,0.0)); 19#13=AXIS2_PLACEMENT_3D('p',#10,#11,#12); 20#20=CARTESIAN_POINT('p0',(0.0,0.0,0.0)); 21#21=CARTESIAN_POINT('p1',(10.0,0.0,0.0)); 22#22=CARTESIAN_POINT('p2',(10.0,10.0,0.0)); 23#23=CARTESIAN_POINT('p3',(0.0,10.0,0.0)); 24#24=CARTESIAN_POINT('p4',(3.0,5.0,0.0)); 25#25=CARTESIAN_POINT('p5',(7.0,5.0,0.0)); 26#26=CARTESIAN_POINT('p6',(5.0,3.0,0.0)); 27#27=CARTESIAN_POINT('p7',(5.0,7.0,0.0)); 28#30=VERTEX_POINT('',#20); 29#31=VERTEX_POINT('',#21); 30#32=VERTEX_POINT('',#22); 31#33=VERTEX_POINT('',#23); 32#34=VERTEX_POINT('',#24); 33#35=VERTEX_POINT('',#25); 34#36=VERTEX_POINT('',#26); 35#37=VERTEX_POINT('',#27); 36#40=DIRECTION('',(1.0,0.0,0.0)); 37#41=DIRECTION('',(0.0,1.0,0.0)); 38#42=DIRECTION('',(-1.0,0.0,0.0)); 39#43=DIRECTION('',(0.0,-1.0,0.0)); 40#50=VECTOR('',#40,10.0); 41#51=VECTOR('',#41,10.0); 42#52=VECTOR('',#42,10.0); 43#53=VECTOR('',#43,10.0); 44#60=LINE('',#20,#50); 45#61=LINE('',#21,#51); 46#62=LINE('',#22,#52); 47#63=LINE('',#23,#53); 48#70=EDGE_CURVE('',#30,#31,#60,.T.); 49#71=EDGE_CURVE('',#31,#32,#61,.T.); 50#72=EDGE_CURVE('',#32,#33,#62,.T.); 51#73=EDGE_CURVE('',#33,#30,#63,.T.); 52#80=ORIENTED_EDGE('',*,*,#70,.T.); 53#81=ORIENTED_EDGE('',*,*,#71,.T.); 54#82=ORIENTED_EDGE('',*,*,#72,.T.); 55#83=ORIENTED_EDGE('',*,*,#73,.T.); 56#90=EDGE_LOOP('',(#80,#81,#82,#83)); 57#100=DIRECTION('',(1.0,0.0,0.0)); 58#101=DIRECTION('',(0.0,1.0,0.0)); 59#102=VECTOR('',#100,4.0); 60#103=VECTOR('',#101,4.0); 61#110=LINE('',#24,#102); 62#111=LINE('',#26,#103); 63#112=EDGE_CURVE('',#34,#35,#110,.T.); 64#113=EDGE_CURVE('',#36,#37,#111,.T.); 65#120=ORIENTED_EDGE('',*,*,#112,.T.); 66#121=ORIENTED_EDGE('',*,*,#113,.T.); 67#130=EDGE_LOOP('',(#120,#121)); 68#140=FACE_OUTER_BOUND('',#90,.T.); 69#141=FACE_INNER_BOUND('',#130,.T.); 70#150=PLANE('',#13); 71#160=ADVANCED_FACE('',(#140,#141),#150,.T.); 72#200=OPEN_SHELL('outer_shell',(#160)); 73#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 74#9001=PRODUCT('Tfa126','Tfa126','',(#9000)); 75#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 76#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 77#9004=PRODUCT_DEFINITION('','',#9002,#9003); 78#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 79#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 80#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 81#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 82#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 83#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 84#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#200)); 85#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 86#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 87ENDSEC; 88END-ISO-10303-21;