Ad120 — SURFACE_OF_REVOLUTION on 3-point-arc profile crashes consumer on import

§12.11 adversarial (sub-class: revolution-near-axis crash)

crash adversarial

Sources

Description

A SURFACE_OF_REVOLUTION generated by revolving a 3-point-arc profile (encoded as a degree-2 B-spline approximation) around a near-perpendicular axis produces a near-degenerate revolved surface. One endpoint of the profile sits sub-epsilon close to the revolution axis (0.001 vs zero), creating a near-singular pin at the revolved-surface pole. Several receivers crash, hang, or produce invalid shape on import.

Reproducer recipe

B_SPLINE_CURVE_WITH_KNOTS degree 2 with control points (0.001, 0, 0), (1, 0, 0.5), (2, 0, 0). Revolution axis: Y axis through (0, 0, 0). Wrap in ADVANCED_FACE + OPEN_SHELL + SBSM.

Expected kernel behavior

detect near-axis-degeneracy on the revolved profile; flag as pin singularity or snap-to-axis before continuing.

Notes

Synonyms: "revolved arc crashes STEP reader", "3-point-arc revolution hangs import", "SURFACE_OF_REVOLUTION near-axis profile invalid", "FreeCAD revolution hang on round-trip", "arc by 3 points revolved STEP crash".

Expected validation

occt=shape(1)/shape(1) gmsh=reject ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad120: SURFACE_OF_REVOLUTION on near-degenerate arc profile */
3HEADER;
4FILE_DESCRIPTION(('Ad120'),'2;1');
5FILE_NAME('Ad120.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('',(0.001,0.0,0.0));
11#2=CARTESIAN_POINT('',(1.0,0.0,0.5));
12#3=CARTESIAN_POINT('',(2.0,0.0,0.0));
13#4=B_SPLINE_CURVE_WITH_KNOTS('arc_3pt_profile',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,1.0,0.0));
16#7=AXIS1_PLACEMENT('rev_axis',#5,#6);
17#8=SURFACE_OF_REVOLUTION('rev_arc',#4,#7);
18#9=VERTEX_POINT('',#1);
19#10=VERTEX_POINT('',#3);
20#11=DIRECTION('',(1.0,0.0,0.0));
21#12=VECTOR('',#11,2.0);
22#13=LINE('',#1,#12);
23#14=EDGE_CURVE('',#9,#10,#13,.T.);
24#15=ORIENTED_EDGE('',$,$,#14,.T.);
25#16=EDGE_LOOP('',(#15));
26#17=FACE_OUTER_BOUND('',#16,.T.);
27#18=ADVANCED_FACE('',(#17),#8,.T.);
28#19=OPEN_SHELL('',(#18));
29#20=SHELL_BASED_SURFACE_MODEL('',(#19));
30#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
31#9051=PRODUCT('Ad120','Ad120','',(#9050));
32#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
33#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
34#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
35#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
36#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
37#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
38#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
39#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
40#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
41#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#20),#9060);
42#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
43ENDSEC;
44END-ISO-10303-21;