step-examples/12-3c-faces/Tfa233.stp
Sources
- synthesized — no external source cited
Description
ADVANCED_FACE on a SURFACE_OF_REVOLUTION with a degenerate seam (profile edge used forward and reversed) crashes the reader (SIGSEGV); periodic-degenerate seam repair is never reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the ADVANCED_FACE on the SURFACE_OF_REVOLUTION whose 4-edge EDGE_LOOP reuses the same profile edge twice — once forward, once reversed — to close the periodic seam: before translating, detect that the same edge entity appears twice in one loop with opposite senses and refuse to build the face from it — a load must never crash; since the reused edge is structurally load-bearing for the loop's closure, the whole face (and the read, if dropping it breaks the shell) must be rejected with the diagnostic instead of aborting the process.
Notes
Corrected 2026-07-17 (truth-in-labeling audit, Q14 second half): retitled/redescribed as an honest crash-robustness fixture — original claimed periodic-degenerate seam 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: "surface-of-revolution degenerate-seam crash".
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/* Tfa233: CLOSED_SHELL: single ADVANCED_FACE on SURFACE_OF_REVOLUTION; profile: B_SPLINE_CURVE_WITH_KNOTS degree=2, 3 control pts at x=1,2,1; axis: Z-axis through origin; full revolution; degenerate seam: EDGE_LOOP uses profile edge forward+reversed; ShapeFix_Face::FixPeriodicDegenerated() context dispatch: Context().IsNull() check gates Apply() invocation; non-null context â Apply() path taken; degenerate seam exercises periodic context-transform branch; defect IS on live traversal path; no orphaned entities */ 3HEADER; 4FILE_DESCRIPTION(('Tfa233'),'2;1'); 5FILE_NAME('Tfa233.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(1.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(2.0,0.0,1.0)); 12#3=CARTESIAN_POINT('',(1.0,0.0,2.0)); 13#4=B_SPLINE_CURVE_WITH_KNOTS('',2,(#1,#2,#3),.UNSPECIFIED.,.F.,.F.,(3,3),(0.0,1.0),.UNSPECIFIED.); 14#5=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#6=DIRECTION('',(0.0,0.0,1.0)); 16#7=DIRECTION('',(1.0,0.0,0.0)); 17#8=AXIS2_PLACEMENT_3D('',#5,#6,#7); 18#9=SURFACE_OF_REVOLUTION('',#4,#8); 19#10=VERTEX_POINT('',#1); 20#11=VERTEX_POINT('',#3); 21#12=EDGE_CURVE('',#10,#11,#4,.T.); 22#13=CARTESIAN_POINT('',(0.0,0.0,0.0)); 23#14=DIRECTION('',(0.0,0.0,-1.0)); 24#15=DIRECTION('',(1.0,0.0,0.0)); 25#16=AXIS2_PLACEMENT_3D('',#13,#14,#15); 26#17=CIRCLE('',#16,1.0); 27#18=EDGE_CURVE('',#10,#10,#17,.T.); 28#19=CARTESIAN_POINT('',(0.0,0.0,2.0)); 29#20=DIRECTION('',(0.0,0.0,1.0)); 30#21=DIRECTION('',(1.0,0.0,0.0)); 31#22=AXIS2_PLACEMENT_3D('',#19,#20,#21); 32#23=CIRCLE('',#22,1.0); 33#24=EDGE_CURVE('',#11,#11,#23,.T.); 34#25=ORIENTED_EDGE('',$,$,#12,.T.); 35#26=ORIENTED_EDGE('',$,$,#24,.T.); 36#27=ORIENTED_EDGE('',$,$,#12,.F.); 37#28=ORIENTED_EDGE('',$,$,#18,.F.); 38#29=EDGE_LOOP('',(#25,#26,#27,#28)); 39#30=FACE_OUTER_BOUND('',#29,.T.); 40#31=ADVANCED_FACE('',(#30),#9,.T.); 41#32=CLOSED_SHELL('',(#31)); 42#33=MANIFOLD_SOLID_BREP('',#32); 43#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 44#9051=PRODUCT('Tfa233','Tfa233','',(#9050)); 45#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 46#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 47#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 48#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 49#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 50#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 51#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 52#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 53#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 54#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#33),#9060); 55#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 56ENDSEC; 57END-ISO-10303-21;