Tfa138 — Tiny near-degenerate 3-edge boundary wire on a SURFACE_OF_REVOLUTION whose profile runs radially (producing a disk, not a cylinder, despite being named 'cylinder_srf') crashes the reader (SIGSEGV); root cause not fully isolated; FixAddNaturalBound is never reached

§12.3c

crash topology

Sources

Description

Tiny near-degenerate 3-edge boundary wire on a SURFACE_OF_REVOLUTION whose profile runs radially (producing a disk, not a cylinder, despite being named 'cylinder_srf') crashes the reader (SIGSEGV); root cause not fully isolated; FixAddNaturalBound is never reached

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming the boundary wire on this SURFACE_OF_REVOLUTION: a profile curve running radially (perpendicular to the rotation axis) produces a degenerate disk rather than the surface the entity's name implies, and combined with a boundary wire whose vertices sit only ~0.01-0.02mm apart near the disk's parametric singularity at its center, the construction must be rejected before shape translation rather than allowed to crash the process.

Notes

Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed FixAddNaturalBound incorrectly constructs a natural boundary at an assumed seam-closure point on a surface flagged u_closed but not actually closed; that method is never reached (crash occurs first). The real, verified structural anomaly is different from the title's claim: the SURFACE_OF_REVOLUTION's profile curve is radial (perpendicular to the rotation axis), producing a disk rather than a cylinder. Root cause of the crash itself is NOT fully isolated in this pass. Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14. Synonyms: "radial-profile revolution surface crashes reader", "disk surface mislabeled as cylinder crashes on tiny boundary".

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/* Tfa138 - ShapeFix_Face.FixAddNaturalBound surface-not-closed-but-flagged
3 * A cylindrical surface with u_closed=true but actually NOT closed (seam gap exists).
4 * FixAddNaturalBound incorrectly constructs a natural boundary at the assumed closure point.
5 */
6HEADER;
7FILE_DESCRIPTION(('Tfa138 test case','ShapeFix_Face.FixAddNaturalBound surface-not-closed-but-flagged'),'2;1');
8FILE_NAME('Tfa138.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/* === Cylindrical surface (almost closed, but with seam gap) === */
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);
18/* Cylinder axis at origin, radius 5, height 10 */
19#20=DIRECTION('',(0.0,0.0,1.0));
20#21=AXIS2_PLACEMENT_3D('',#10,#20,#12);
21/* Surface_of_revolution approximation via SURFACE_OF_REVOLUTION */
22#22=DIRECTION('',(1.0,0.0,0.0));#23=VECTOR('',#22,5.0);#24=LINE('',#10,#23);
23#25=SURFACE_OF_REVOLUTION('cylinder_srf',#24,#21);
24/* Face bounds: outer loop (small circle at base) */
25#30=CARTESIAN_POINT('',(5.0,0.0,0.0));#31=VERTEX_POINT('',#30);
26#32=CARTESIAN_POINT('',(5.0,0.01,0.0));#33=VERTEX_POINT('',#32);
27#34=CARTESIAN_POINT('',(4.99,0.02,0.0));#35=VERTEX_POINT('',#34);
28#36=DIRECTION('',(1.0,0.0,0.0));#37=VECTOR('',#36,1.0);#38=LINE('',#30,#37);
29#39=EDGE_CURVE('e1',#31,#33,#38,.T.);
30#40=DIRECTION('',(-0.5,0.866,0.0));#41=VECTOR('',#40,1.0);#42=LINE('',#32,#41);
31#43=EDGE_CURVE('e2',#33,#35,#42,.T.);
32#44=DIRECTION('',(-0.5,-0.866,0.0));#45=VECTOR('',#44,1.0);#46=LINE('',#34,#45);
33#47=EDGE_CURVE('e3',#35,#31,#46,.T.);
34#48=ORIENTED_EDGE('',*,*,#39,.T.);#49=ORIENTED_EDGE('',*,*,#43,.T.);
35#50=ORIENTED_EDGE('',*,*,#47,.T.);
36#51=EDGE_LOOP('bound_loop',(#48,#49,#50));
37#52=FACE_OUTER_BOUND('',#51,.T.);
38/* Face flagged with u_closed=true but surface is NOT actually closed */
39#90=ADVANCED_FACE('pseudo_closed_cylinder',(#52),#25,.T.);
40/* === Wrap in PRODUCT chain === */
41#9000=PRODUCT_CONTEXT('',#1,'mechanical');
42#9001=PRODUCT('Tfa138','Tfa138','',(#9000));
43#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
44#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
45#9004=PRODUCT_DEFINITION('','',#9002,#9003);
46#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
47#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
48#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
49#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
50#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
51#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
52#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9050));
53#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
54#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
55#9050=CLOSED_SHELL('shell',(#90));
56ENDSEC;
57END-ISO-10303-21;