step-examples/12-3c-faces/Tfa131.stp
Sources
- synthesized — no external source cited
Description
Two 4-edge wires sharing a coincident edge segment (outer rectangle + adjacent inner wire reusing one outer edge) crashes the reader (SIGSEGV) as soon as the extra bound wire is present; loads cleanly with only the outer wire — coincident-edge wire merging is never reached
Reproducer recipe
Expected kernel behavior
Given two bounds of the same face that share a collinear segment — here an inner wire that re-uses one of the outer wire's own edges — detect the overlap by intersecting edge pairs across the two wires, then resolve it: split the participating edges at the ends of the shared span and rebuild both wires over a single shared segment edge, then rebuild the face from the modified wires. If the overlap cannot be resolved, drop the offending bound with a diagnostic naming it; reading a face whose bounds share an edge must not terminate the process.
Notes
Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed coincident-edge wire merging cannot decide which wire owns the shared edge segment; that method is never reached because the file crashes (SIGSEGV) during shape translation before any wire-level healing pass runs. Isolation testing (stripping the extra bound wire) confirms the outer-bound-alone face loads cleanly; the crash is reproduced by restoring the additional wire. Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14. Synonyms: "multi-bound face crashes reader, outer-alone loads clean", "shared-edge-reusing inner wire crashes reader (NOT GEOMETRIC_CURVE_SET-orphaned, contra Q14's flagged note)".
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
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 28 face fixture Tfa131'),'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/* Tfa131 - FixWiresTwoCoincEdges.crossing-wires-coincident-segment 12 * Defect: Two wires with coincident edge segments. 13 * FixWiresTwoCoincEdges can't decide which wire owns the segment. 14 * Trigger: Face with two non-trivial wires sharing an edge curve. 15 */ 16 17#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0)); 18#11=DIRECTION('z',(0.0,0.0,1.0)); 19#12=DIRECTION('x',(1.0,0.0,0.0)); 20#13=AXIS2_PLACEMENT_3D('placement',#10,#11,#12); 21 22/* Outer wire: large rectangle */ 23#20=CARTESIAN_POINT('p0',(0.0,0.0,0.0)); 24#21=CARTESIAN_POINT('p1',(10.0,0.0,0.0)); 25#22=CARTESIAN_POINT('p2',(10.0,10.0,0.0)); 26#23=CARTESIAN_POINT('p3',(0.0,10.0,0.0)); 27 28/* Inner wire: shares edge (p1,p2) with outer */ 29#24=CARTESIAN_POINT('p4',(10.0,0.0,0.0)); 30#25=CARTESIAN_POINT('p5',(10.0,10.0,0.0)); 31#26=CARTESIAN_POINT('p6',(12.0,10.0,0.0)); 32#27=CARTESIAN_POINT('p7',(12.0,0.0,0.0)); 33 34/* Vertices */ 35#30=VERTEX_POINT('v0',#20); 36#31=VERTEX_POINT('v1',#21); 37#32=VERTEX_POINT('v2',#22); 38#33=VERTEX_POINT('v3',#23); 39#34=VERTEX_POINT('v4',#24); 40#35=VERTEX_POINT('v5',#25); 41#36=VERTEX_POINT('v6',#26); 42#37=VERTEX_POINT('v7',#27); 43 44/* Edges - outer wire */ 45#40=DIRECTION('d1',(1.0,0.0,0.0)); 46#41=DIRECTION('d2',(0.0,1.0,0.0)); 47#42=DIRECTION('d3',(-1.0,0.0,0.0)); 48#43=DIRECTION('d4',(0.0,-1.0,0.0)); 49#44=VECTOR('v1',#40,10.0); 50#45=VECTOR('v2',#41,10.0); 51#46=VECTOR('v3',#42,10.0); 52#47=VECTOR('v4',#43,10.0); 53#50=LINE('line1',#20,#44); 54#51=LINE('line2',#21,#45); 55#52=LINE('line3',#22,#46); 56#53=LINE('line4',#23,#47); 57 58/* Outer wire edges */ 59#60=EDGE_CURVE('e0',#30,#31,#50,.T.); 60#61=EDGE_CURVE('e1',#31,#32,#51,.T.); 61#62=EDGE_CURVE('e2',#32,#33,#52,.T.); 62#63=EDGE_CURVE('e3',#33,#30,#53,.T.); 63 64/* Inner wire edges - shares e1 with outer */ 65#64=DIRECTION('d5',(0.0,-1.0,0.0)); 66#65=DIRECTION('d6',(1.0,0.0,0.0)); 67#66=DIRECTION('d7',(0.0,1.0,0.0)); 68#67=VECTOR('v7',#65,2.0); 69#68=VECTOR('v8',#66,10.0); 70#69=VECTOR('v9',#64,2.0); 71#70=LINE('line5',#27,#67); 72#71=LINE('line6',#26,#68); 73#72=LINE('line7',#25,#69); 74 75#73=EDGE_CURVE('e4',#37,#36,#70,.T.); 76#74=EDGE_CURVE('e5',#36,#35,#71,.T.); 77#75=EDGE_CURVE('e6',#35,#34,#72,.T.); 78 79/* Oriented edges - outer */ 80#80=ORIENTED_EDGE('oe0',*,*,#60,.T.); 81#81=ORIENTED_EDGE('oe1',*,*,#61,.T.); 82#82=ORIENTED_EDGE('oe2',*,*,#62,.T.); 83#83=ORIENTED_EDGE('oe3',*,*,#63,.T.); 84 85/* Oriented edges - inner (reuses e1 from outer) */ 86#84=ORIENTED_EDGE('oe4',*,*,#75,.T.); 87#85=ORIENTED_EDGE('oe5',*,*,#61,.T.); 88#86=ORIENTED_EDGE('oe6',*,*,#73,.T.); 89#87=ORIENTED_EDGE('oe7',*,*,#74,.T.); 90 91/* Edge loops */ 92#90=EDGE_LOOP('loop1',(#80,#81,#82,#83)); 93#91=EDGE_LOOP('loop2',(#84,#85,#86,#87)); 94 95/* Face bounds */ 96#100=FACE_OUTER_BOUND('outer',#90,.T.); 97#101=FACE_INNER_BOUND('inner',#91,.T.); 98 99/* Geometry */ 100#110=PLANE('plane',#13); 101 102/* Face with shared edge triggering FixWiresTwoCoincEdges */ 103#120=ADVANCED_FACE('coincident',(#100,#101),#110,.T.); 104 105#130=OPEN_SHELL('shell',(#120)); 106 107/* Mandatory PRODUCT chain */ 108#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 109#9001=PRODUCT('Tfa131','Tfa131','',(#9000)); 110#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 111#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 112#9004=PRODUCT_DEFINITION('','',#9002,#9003); 113#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 114#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 115#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 116#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 117#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 118#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 119#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#130)); 120#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 121#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 122ENDSEC; 123END-ISO-10303-21;