step-examples/12-3c-faces/Tfa095.stp
Sources
- synthesized — no external source cited
Description
Face on a SURFACE_OF_REVOLUTION crashes the reader (SIGSEGV) with just the outer 4-edge boundary present — not attributable to the 'degenerate apex' meridian wires the title describes; periodic-degenerate seam repair is never reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the ADVANCED_FACE on this SURFACE_OF_REVOLUTION: isolation shows the crash persists even after stripping all four apex/meridian inner-loop wires down to the outer 4-edge boundary alone, so a correct kernel must detect that this face cannot be safely translated on this surface and refuse to build it with a diagnostic naming the face and surface, rather than crashing the process — the specific structural trigger beyond the outer boundary is not established, so the check must be conservative rather than target a specific meridian construct.
Notes
Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed periodic-degenerate seam repair mishandles the revolution-axis degenerate apex edge; that method is never reached (crash occurs first), and isolation testing shows the crash persists even with all apex/meridian wires removed — the title's specific "degenerate apex" mechanism is not what triggers this crash. Root cause of the crash itself is NOT fully isolated in this pass (unlike Tfa106/Tfa126, no single invalid-bound-topology cause was found). Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14. Synonyms: "revolution-surface outer-boundary-alone crashes reader", "degenerate-apex construction not the actual crash cause".
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/* Tfa095 - ShapeFix_Face.FixPeriodicDegenerated SURFACE_OF_REVOLUTION apex 3 * Full surface-of-revolution with degenerate apex curve at v=0 (the axis of rotation). 4 * FixPeriodicDegenerated must handle the revolution-axis degenerate edge differently 5 * from cone apex. Revolution surfaces pinch at v=0 to a line/point on rotation axis. */ 6HEADER; 7FILE_DESCRIPTION(('Tfa095 test case','Face with SURFACE_OF_REVOLUTION having degenerate apex at revolution axis'),'2;1'); 8FILE_NAME('Tfa095.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/* === Axis placement for revolution: axis along Z, origin at (0,0,0) === */ 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/* === Profile curve for revolution: a line from (1.0, 0.0, 0.0) to (1.0, 0.0, 2.0) 20 * When revolved 360 degrees around Z axis, creates a cylinder with apex at Z=0. === */ 21#20=CARTESIAN_POINT('',(1.0,0.0,0.0)); 22#21=CARTESIAN_POINT('',(1.0,0.0,2.0)); 23#22=DIRECTION('',(0.0,0.0,1.0)); 24#23=VECTOR('',#22,2.0); 25#24=LINE('profile_line',#20,#23); 26/* === Surface of Revolution: 360 degrees === */ 27#30=SURFACE_OF_REVOLUTION('surface_of_rev',#24,#13); 28/* === Outer boundary: circle at top (z=2.0), radius 1.0 === */ 29#40=CARTESIAN_POINT('',(1.0,0.0,2.0));#41=VERTEX_POINT('',#40); 30#42=CARTESIAN_POINT('',(0.0,1.0,2.0));#43=VERTEX_POINT('',#42); 31#44=CARTESIAN_POINT('',(-1.0,0.0,2.0));#45=VERTEX_POINT('',#44); 32#46=CARTESIAN_POINT('',(0.0,-1.0,2.0));#47=VERTEX_POINT('',#46); 33/* Top circle edges (4 quarter-arcs) */ 34#50=DIRECTION('',(0.0,0.0,2.0)); 35#51=AXIS2_PLACEMENT_3D('',#40,#50,#12); 36#52=CIRCLE('top_circle',#51,1.0); 37#53=EDGE_CURVE('top_q1',#41,#43,#52,.T.); 38#54=EDGE_CURVE('top_q2',#43,#45,#52,.T.); 39#55=EDGE_CURVE('top_q3',#45,#47,#52,.T.); 40#56=EDGE_CURVE('top_q4',#47,#41,#52,.T.); 41#57=ORIENTED_EDGE('',*,*,#53,.T.);#58=ORIENTED_EDGE('',*,*,#54,.T.); 42#59=ORIENTED_EDGE('',*,*,#55,.T.);#60=ORIENTED_EDGE('',*,*,#56,.T.); 43#61=EDGE_LOOP('top_loop',(#57,#58,#59,#60)); 44#62=FACE_OUTER_BOUND('',#61,.T.); 45/* === Degenerate edge at apex (z=0): all four radial lines converge to single point 46 * This represents the axis line from (0,0,0) to (0,0,0) â truly degenerate. 47 * In STEP, we model this as a single EDGE_CURVE from origin to origin. === */ 48#70=CARTESIAN_POINT('',(0.0,0.0,0.0));#71=VERTEX_POINT('apex_pt',#70); 49#72=DIRECTION('',(0.0,0.0,1.0)); 50#73=VECTOR('',#72,0.0); 51#74=LINE('degenerate_apex_edge',#70,#73); 52#75=EDGE_CURVE('apex_edge',#71,#71,#74,.T.); 53/* Connect apex to top circle at 4 points via meridian edges */ 54#80=DIRECTION('',(0.0,0.0,1.0)); 55#81=VECTOR('',#80,2.0); 56#82=LINE('meridian1',#70,#81); 57#83=EDGE_CURVE('meridian1_edge',#71,#41,#82,.T.); 58#84=LINE('meridian2',#70,#81); 59#85=EDGE_CURVE('meridian2_edge',#71,#43,#84,.T.); 60#86=LINE('meridian3',#70,#81); 61#87=EDGE_CURVE('meridian3_edge',#71,#45,#86,.T.); 62#88=LINE('meridian4',#70,#81); 63#89=EDGE_CURVE('meridian4_edge',#71,#47,#88,.T.); 64/* Four inner loops: each connects apex to two adjacent top points via degenerate apex edge */ 65#90=ORIENTED_EDGE('',*,*,#75,.T.);#91=ORIENTED_EDGE('',*,*,#83,.T.); 66#92=ORIENTED_EDGE('',*,*,#53,.T.);#93=ORIENTED_EDGE('',*,*,#89,.F.); 67#94=EDGE_LOOP('inner_q1',(#90,#91,#92,#93)); 68#95=FACE_INNER_BOUND('',#94,.T.); 69#100=ORIENTED_EDGE('',*,*,#75,.T.);#101=ORIENTED_EDGE('',*,*,#85,.T.); 70#102=ORIENTED_EDGE('',*,*,#54,.T.);#103=ORIENTED_EDGE('',*,*,#83,.F.); 71#104=EDGE_LOOP('inner_q2',(#100,#101,#102,#103)); 72#105=FACE_INNER_BOUND('',#104,.T.); 73#110=ORIENTED_EDGE('',*,*,#75,.T.);#111=ORIENTED_EDGE('',*,*,#87,.T.); 74#112=ORIENTED_EDGE('',*,*,#55,.T.);#113=ORIENTED_EDGE('',*,*,#85,.F.); 75#114=EDGE_LOOP('inner_q3',(#110,#111,#112,#113)); 76#115=FACE_INNER_BOUND('',#114,.T.); 77#120=ORIENTED_EDGE('',*,*,#75,.T.);#121=ORIENTED_EDGE('',*,*,#89,.T.); 78#122=ORIENTED_EDGE('',*,*,#56,.T.);#123=ORIENTED_EDGE('',*,*,#87,.F.); 79#124=EDGE_LOOP('inner_q4',(#120,#121,#122,#123)); 80#125=FACE_INNER_BOUND('',#124,.T.); 81#140=ADVANCED_FACE('revolution_apex_face',(#62,#95,#105,#115,#125),#30,.T.); 82/* === Mandatory product context chain === */ 83#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 84#9001=PRODUCT('Tfa095','Tfa095','',(#9000)); 85#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 86#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 87#9004=PRODUCT_DEFINITION('','',#9002,#9003); 88#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 89#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 90#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 91#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 92#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 93#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 94#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020)); 95#9020=OPEN_SHELL('shell',(#140)); 96#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 97#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 98ENDSEC; 99END-ISO-10303-21;