step-examples/12-3c-faces/Tfa105.stp
Sources
- synthesized — no external source cited
Description
Tiny closed inner wire crossing a periodic cylindrical surface's seam crashes the reader (SIGSEGV); small-area-wire repair is never reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the tiny inner wire straddling the cylinder's U-seam at z=2: even though both the outer and inner wires are individually properly closed, a correct kernel must detect that this seam-crossing near-coincident-vertex wire on a periodic surface cannot be safely processed and refuse to build the face with a diagnostic, rather than crash during translation — the precise failure mechanism (hypothesized as seam-aware pcurve projection instability) is not fully isolated, so the check must key on the seam-crossing, near-zero-area wire pattern rather than a narrower cause.
Notes
Corrected 2026-07-16 (truth-in-labeling audit): retitled/redescribed — original claimed small-area-wire repair's area calculation doesn't account for seam wrapping; that method is never reached (crash occurs first). Root cause of the crash itself is NOT fully isolated in this pass (unlike Tfa085/Tfa106/Tfa118, both wires are validly closed) — recorded honestly as a hypothesis rather than a verified mechanism, per `SEGFAULT_CHARACTERIZATION.md` convention. Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14, which also flags this crash's root cause as needing further isolation. Synonyms: "tiny wire crosses cylinder seam crashes reader", "periodic surface seam-crossing wire segfault".
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; 2/* Tfa105 â ShapeFix_Face.FixSmallAreaWire seam-aware 3 * Face whose small inner wire crosses the host surface seam. 4 * The bug: FixSmallAreaWire's area calculation doesn't account for seam wrapping. 5 */ 6HEADER; 7FILE_DESCRIPTION(('Tfa105 test case','Small wire crossing periodic surface seam'),'2;1'); 8FILE_NAME('Tfa105.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 10ENDSEC; 11DATA; 12#1=APPLICATION_CONTEXT('automotive_design'); 13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 14/* Cylinder: U-periodic (seam at U=0/2PI), base radius 5, axis Z */ 15#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#11=DIRECTION('',(0.0,0.0,1.0)); 17#12=DIRECTION('',(1.0,0.0,0.0)); 18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 19#14=CYLINDRICAL_SURFACE('periodic_cyl',#13,5.0); 20/* Outer wire: complete loop on cylinder at z=0 to z=5 */ 21#20=CARTESIAN_POINT('',(5.0,0.0,0.0)); 22#21=VERTEX_POINT('outer_v1',#20); 23#22=CARTESIAN_POINT('',(5.0,0.0,5.0)); 24#23=VERTEX_POINT('outer_v2',#22); 25#24=CARTESIAN_POINT('',(-5.0,0.0,5.0)); 26#25=VERTEX_POINT('outer_v3',#24); 27#26=CARTESIAN_POINT('',(-5.0,0.0,0.0)); 28#27=VERTEX_POINT('outer_v4',#26); 29/* Edges for outer wire */ 30#30=DIRECTION('',(0.0,0.0,1.0)); 31#31=VECTOR('',#30,1.0); 32#32=LINE('outer_e1',#20,#31); 33#33=EDGE_CURVE('outer_edge_1',#21,#23,#32,.T.); 34#34=DIRECTION('',(-1.0,0.0,0.0)); 35#35=VECTOR('',#34,1.0); 36#36=LINE('outer_e2',#22,#35); 37#37=EDGE_CURVE('outer_edge_2',#23,#25,#36,.T.); 38#38=DIRECTION('',(0.0,0.0,-1.0)); 39#39=VECTOR('',#38,1.0); 40#40=LINE('outer_e3',#24,#39); 41#41=EDGE_CURVE('outer_edge_3',#25,#27,#40,.T.); 42#42=DIRECTION('',(1.0,0.0,0.0)); 43#43=VECTOR('',#42,1.0); 44#44=LINE('outer_e4',#26,#43); 45#45=EDGE_CURVE('outer_edge_4',#27,#21,#44,.T.); 46/* Outer loop */ 47#50=ORIENTED_EDGE('outer_oe1',*,*,#33,.T.); 48#51=ORIENTED_EDGE('outer_oe2',*,*,#37,.T.); 49#52=ORIENTED_EDGE('outer_oe3',*,*,#41,.T.); 50#53=ORIENTED_EDGE('outer_oe4',*,*,#45,.T.); 51#54=EDGE_LOOP('outer_loop',(#50,#51,#52,#53)); 52#55=FACE_OUTER_BOUND('',#54,.T.); 53/* Small inner wire crossing seam: z=2, U wraps 2PI boundary */ 54#60=CARTESIAN_POINT('',(5.0,0.0,2.0)); 55#61=VERTEX_POINT('inner_v1',#60); 56#62=CARTESIAN_POINT('',(4.99,0.1,2.0)); 57#63=VERTEX_POINT('inner_v2',#62); 58#64=CARTESIAN_POINT('',(5.0,0.0,2.0)); 59#65=VERTEX_POINT('inner_v3',#64); 60#66=CARTESIAN_POINT('',(5.01,-0.1,2.0)); 61#67=VERTEX_POINT('inner_v4',#66); 62/* Edges for seam-crossing inner wire (tiny, area near zero before seam unwrap) */ 63#70=DIRECTION('',(0.0,1.0,0.0)); 64#71=VECTOR('',#70,1.0); 65#72=LINE('inner_e1',#60,#71); 66#73=EDGE_CURVE('inner_edge_1',#61,#63,#72,.T.); 67#74=DIRECTION('',(1.0,0.0,0.0)); 68#75=VECTOR('',#74,1.0); 69#76=LINE('inner_e2',#62,#75); 70#77=EDGE_CURVE('inner_edge_2',#63,#65,#76,.T.); 71#78=DIRECTION('',(0.0,-1.0,0.0)); 72#79=VECTOR('',#78,1.0); 73#80=LINE('inner_e3',#64,#79); 74#81=EDGE_CURVE('inner_edge_3',#65,#67,#80,.T.); 75#82=DIRECTION('',(-1.0,0.0,0.0)); 76#83=VECTOR('',#82,1.0); 77#84=LINE('inner_e4',#66,#83); 78#85=EDGE_CURVE('inner_edge_4',#67,#61,#84,.T.); 79/* Inner loop */ 80#86=ORIENTED_EDGE('inner_oe1',*,*,#73,.T.); 81#87=ORIENTED_EDGE('inner_oe2',*,*,#77,.T.); 82#88=ORIENTED_EDGE('inner_oe3',*,*,#81,.T.); 83#89=ORIENTED_EDGE('inner_oe4',*,*,#85,.T.); 84#90=EDGE_LOOP('seam_crossing_loop',(#86,#87,#88,#89)); 85#91=FACE_INNER_BOUND('seam_crossing_bound',#90,.T.); 86/* Create face with both outer and small inner wire */ 87#100=ADVANCED_FACE('seam_crossing_face',(#55,#91),#14,.T.); 88/* Product chain */ 89#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 90#9001=PRODUCT('Tfa105','Tfa105','',(#9000)); 91#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 92#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 93#9004=PRODUCT_DEFINITION('','',#9002,#9003); 94#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 95#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 96#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 97#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 98#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 99#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 100#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9030)); 101#9030=OPEN_SHELL('seam_shell',(#100)); 102#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 103#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 104ENDSEC; 105END-ISO-10303-21;