step-examples/12-3c-faces/Tfa137.stp
Sources
- synthesized — no external source cited
Description
Rectangular face with an inner rectangular hole crashes the reader (SIGSEGV) as soon as the extra bound wire is present; loads cleanly with only the outer wire — twisted-face checking is never reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the inner hole wire: a rectangular face whose outer wire alone loads cleanly but which crashes as soon as the inner rectangular-hole wire is added must have that construction rejected during shape translation before the crash — build the face from the outer wire only, flagging the dropped hole wire, rather than letting the process abort.
Notes
Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed twisted-face checking classifies twist using only the outer wire's winding, missing the hole's counter-winding contribution; 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", "inner hole wire crashes reader, outer-alone loads clean".
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/* Tfa137 - ShapeAnalysis_CheckSmallFace.CheckTwisted face-with-hole 3 * A rectangular face with a hole inside. The twist classification uses only 4 * the outer wire for inside/outside test, missing the hole's winding contribution. 5 */ 6HEADER; 7FILE_DESCRIPTION(('Tfa137 test case','ShapeAnalysis_CheckSmallFace.CheckTwisted face-with-hole'),'2;1'); 8FILE_NAME('Tfa137.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12#1=APPLICATION_CONTEXT('automotive_design'); 13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 14/* === Face with outer + inner bounds === */ 15#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#11=DIRECTION('',(0.0,0.0,1.0));#12=DIRECTION('',(1.0,0.0,0.0)); 17#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);#14=PLANE('face_plane',#13); 18/* === Outer wire: 12x10 rectangle === */ 19#20=CARTESIAN_POINT('',(0.0,0.0,0.0));#21=VERTEX_POINT('',#20); 20#22=CARTESIAN_POINT('',(12.0,0.0,0.0));#23=VERTEX_POINT('',#22); 21#24=CARTESIAN_POINT('',(12.0,10.0,0.0));#25=VERTEX_POINT('',#24); 22#26=CARTESIAN_POINT('',(0.0,10.0,0.0));#27=VERTEX_POINT('',#26); 23#30=DIRECTION('',(1.0,0.0,0.0));#31=VECTOR('',#30,1.0);#32=LINE('',#20,#31); 24#33=EDGE_CURVE('e_outer_1',#21,#23,#32,.T.); 25#34=DIRECTION('',(0.0,1.0,0.0));#35=VECTOR('',#34,1.0);#36=LINE('',#22,#35); 26#37=EDGE_CURVE('e_outer_2',#23,#25,#36,.T.); 27#38=DIRECTION('',(-1.0,0.0,0.0));#39=VECTOR('',#38,1.0);#40=LINE('',#24,#39); 28#41=EDGE_CURVE('e_outer_3',#25,#27,#40,.T.); 29#42=DIRECTION('',(0.0,-1.0,0.0));#43=VECTOR('',#42,1.0);#44=LINE('',#26,#43); 30#45=EDGE_CURVE('e_outer_4',#27,#21,#44,.T.); 31#46=ORIENTED_EDGE('',*,*,#33,.T.);#47=ORIENTED_EDGE('',*,*,#37,.T.); 32#48=ORIENTED_EDGE('',*,*,#41,.T.);#49=ORIENTED_EDGE('',*,*,#45,.T.); 33#50=EDGE_LOOP('outer_loop',(#46,#47,#48,#49)); 34#51=FACE_OUTER_BOUND('',#50,.T.); 35/* === Inner wire (hole): 4x3 rectangle at center (4,3.5) to (8,6.5) === */ 36#60=CARTESIAN_POINT('',(4.0,3.5,0.0));#61=VERTEX_POINT('',#60); 37#62=CARTESIAN_POINT('',(8.0,3.5,0.0));#63=VERTEX_POINT('',#62); 38#64=CARTESIAN_POINT('',(8.0,6.5,0.0));#65=VERTEX_POINT('',#64); 39#66=CARTESIAN_POINT('',(4.0,6.5,0.0));#67=VERTEX_POINT('',#66); 40#70=DIRECTION('',(1.0,0.0,0.0));#71=VECTOR('',#70,1.0);#72=LINE('',#60,#71); 41#73=EDGE_CURVE('e_hole_1',#61,#63,#72,.T.); 42#74=DIRECTION('',(0.0,1.0,0.0));#75=VECTOR('',#74,1.0);#76=LINE('',#62,#75); 43#77=EDGE_CURVE('e_hole_2',#63,#65,#76,.T.); 44#78=DIRECTION('',(-1.0,0.0,0.0));#79=VECTOR('',#78,1.0);#80=LINE('',#64,#79); 45#81=EDGE_CURVE('e_hole_3',#65,#67,#80,.T.); 46#82=DIRECTION('',(0.0,-1.0,0.0));#83=VECTOR('',#82,1.0);#84=LINE('',#66,#83); 47#85=EDGE_CURVE('e_hole_4',#67,#61,#84,.T.); 48#86=ORIENTED_EDGE('',*,*,#73,.T.);#87=ORIENTED_EDGE('',*,*,#77,.T.); 49#88=ORIENTED_EDGE('',*,*,#81,.T.);#89=ORIENTED_EDGE('',*,*,#85,.T.); 50#90=EDGE_LOOP('hole_loop',(#86,#87,#88,#89)); 51#91=FACE_INNER_BOUND('',#90,.T.); 52#100=ADVANCED_FACE('face_with_hole',(#51,#91),#14,.T.); 53/* === Wrap in PRODUCT chain === */ 54#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 55#9001=PRODUCT('Tfa137','Tfa137','',(#9000)); 56#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 57#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 58#9004=PRODUCT_DEFINITION('','',#9002,#9003); 59#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 60#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 61#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 62#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 63#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 64#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 65#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9050)); 66#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 67#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 68#9050=CLOSED_SHELL('shell',(#100)); 69ENDSEC; 70END-ISO-10303-21;