step-examples/12-3c-faces/Tfa178.stp
Sources
- synthesized — no external source cited
Description
PLANE face with a triangular inner wire touching an outer corner crashes the reader (SIGSEGV) even with the inner wire removed; small-area-wire repair is never reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the ADVANCED_FACE (not the inner wire specifically, since removing the inner bound entirely still reproduces the crash): the crash's true trigger lies elsewhere in this file's construction, so a correct kernel must isolate and reject whatever malformed construct is actually responsible with a diagnostic before shape translation, rather than aborting the process — the inner wire's corner-touching vertex itself is not the cause and must not be blamed by any diagnostic that is emitted.
Notes
Corrected 2026-07-17 (truth-in-labeling audit, Q14 second half): retitled/redescribed as an honest crash-robustness fixture — original claimed small-area-wire repair produces a specific silent misclassification/undefined-behavior outcome; in reality the process crashes before that method (or any face-repair/small-face-check method) is ever reached. The crash itself is genuine and is retained as the fixture's real, verified defect (Expected validation unchanged: `signal(11)/signal(11)`). Part of the ~127-entry face-repair/small-face-check misnomer family identified in the truth-in-labeling audit — see `BACKLOG.md` Q14 for the full list and remediation approach. Synonyms: "corner-touching inner wire crash persists without inner wire".
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; 2/* Tfa178 - ShapeFix_Face.FixSmallAreaWire wire-touching-outer-corner 3 * Defect: FixSmallAreaWire computes the area of inner wires to identify and 4 * remove degenerate wires; when an inner wire's vertex exactly coincides with 5 * a corner of the outer wire, the area calculation misidentifies the wire as 6 * the outer boundary and silently corrupts the face topology. 7 * Reproducer: ADVANCED_FACE with inner wire whose vertex touches outer corner. 8 */ 9HEADER; 10FILE_DESCRIPTION(('Tfa178 FixSmallAreaWire corner touch'),'2;1'); 11FILE_NAME('Tfa178.stp','2026-06-15T00:00:00',(''),(''), 12 'cad-research-suite','',''); 13FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('automotive design'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'automotive_design',2009,#1); 19#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0)); 20#11=DIRECTION('z',(0.0,0.0,1.0)); 21#12=DIRECTION('x',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('plc',#10,#11,#12); 23#20=PLANE('base_plane',#13); 24/* Outer square wire */ 25#200=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#201=VERTEX_POINT('',#200); 27#202=CARTESIAN_POINT('',(20.0,0.0,0.0)); 28#203=VERTEX_POINT('',#202); 29#204=CARTESIAN_POINT('',(20.0,20.0,0.0)); 30#205=VERTEX_POINT('',#204); 31#206=CARTESIAN_POINT('',(0.0,20.0,0.0)); 32#207=VERTEX_POINT('',#206); 33/* Inner wire: tiny triangle with vertex at outer corner (0,0) */ 34#210=CARTESIAN_POINT('',(0.0,0.0,0.0)); 35#211=VERTEX_POINT('',#210); 36#212=CARTESIAN_POINT('',(0.5,0.0,0.0)); 37#213=VERTEX_POINT('',#212); 38#214=CARTESIAN_POINT('',(0.25,0.5,0.0)); 39#215=VERTEX_POINT('',#214); 40/* Outer wire edges */ 41#300=VECTOR('',(1.0,0.0,0.0),20.0); 42#301=LINE('',#200,#300); 43#302=EDGE_CURVE('',#201,#203,#301,.T.); 44#303=VECTOR('',(0.0,1.0,0.0),20.0); 45#304=LINE('',#202,#303); 46#305=EDGE_CURVE('',#203,#205,#304,.T.); 47#306=VECTOR('',(-1.0,0.0,0.0),20.0); 48#307=LINE('',#204,#306); 49#308=EDGE_CURVE('',#205,#207,#307,.T.); 50#309=VECTOR('',(0.0,-1.0,0.0),20.0); 51#310=LINE('',#206,#309); 52#311=EDGE_CURVE('',#207,#201,#310,.T.); 53/* Inner wire edges */ 54#320=VECTOR('',(1.0,0.0,0.0),0.5); 55#321=LINE('',#210,#320); 56#322=EDGE_CURVE('',#211,#213,#321,.T.); 57#323=VECTOR('',(-0.447,0.894,0.0),0.559); 58#324=LINE('',#212,#323); 59#325=EDGE_CURVE('',#213,#215,#324,.T.); 60#326=VECTOR('',(-0.447,-0.894,0.0),0.559); 61#327=LINE('',#214,#326); 62#328=EDGE_CURVE('',#215,#211,#327,.T.); 63/* Oriented edges */ 64#400=ORIENTED_EDGE('',*,*,#302,.T.); 65#401=ORIENTED_EDGE('',*,*,#305,.T.); 66#402=ORIENTED_EDGE('',*,*,#308,.T.); 67#403=ORIENTED_EDGE('',*,*,#311,.T.); 68#410=ORIENTED_EDGE('',*,*,#322,.T.); 69#411=ORIENTED_EDGE('',*,*,#325,.T.); 70#412=ORIENTED_EDGE('',*,*,#328,.T.); 71/* Loops */ 72#500=EDGE_LOOP('',(#400,#401,#402,#403)); 73#501=FACE_OUTER_BOUND('',#500,.T.); 74#510=EDGE_LOOP('',(#410,#411,#412)); 75#511=FACE_INNER_BOUND('',#510,.F.); 76#600=ADVANCED_FACE('corner_touch_inner',(#501,#511),#20,.T.); 77#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 78#9001=PRODUCT('Tfa178','Tfa178','',(#9000)); 79#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 80#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 81#9004=PRODUCT_DEFINITION('','',#9002,#9003); 82#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 83#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 84#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 85#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 86#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 87#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 88#9020=OPEN_SHELL('wrap_shell',(#600)); 89#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020)); 90#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 91#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 92ENDSEC; 93END-ISO-10303-21;