step-examples/12-2c-surfaces/Gs002.stp
Sources
- G010, G011, G066
Description
A STEP `TOROIDAL_SURFACE` with minor radius equal to or exceeding major radius collapses the analytic torus into a self-intersecting "lemon" (minor > major, no central hole) or "apple" (minor = major, single pinch point at the centre). Receivers that assume `minor < major` produce overlarge bounding boxes, mis-handle seam insertion, or import a revolved-shape variant inverted.
Reproducer recipe
`TOROIDAL_SURFACE` with major_radius=2, minor_radius=3; reference from a face with single FACE_OUTER_BOUND covering the full parameter rectangle.
Expected kernel behavior
accept the analytic surface and treat its parameter range correctly for seam insertion and bbox computation, or reject as malformed (a kernel that requires `minor < major` should refuse rather than silently mis-bound).
Notes
**Honest reclassification (2026-08-10)**: confirmed orphaned-defect carrier — the signal(11) is an empty-`SHELL_BASED_SURFACE_MODEL` crash (`struct == EMPTY_AGGREGATE`), not a degenerate-torus witness; the titled `minor>=major` condition is oracle-invisible at load (a wired lemon torus builds shape(1) identical to a valid torus — see OCC behavior). Resolves the M.22 probe and the M.24 assertion skip. Synonyms: "torus minor radius greater than major (lemon shape)", "apple torus minor equals major", "self-intersecting torus no central hole", "lemon-shape torus collapses bounding box", "TOROIDAL_SURFACE with minor_radius >= major_radius".
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Closure intent
ambiguous — the open shell is an incidental scaffold for a non-closure-related test.
Byte assertions
contains(b'TOROIDAL_SURFACE(')contains(b'2.0,3.0')contains(b'VERTEX_LOOP(')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs002: TOROIDAL_SURFACE major_radius=2.0 minor_radius=3.0 IS ADVANCED_FACE.face_geometry; minor > major â lemon/apple shape, self-intersecting torus, no central hole; VERTEX_LOOP at apex wires degenerate boundary; shape_null=True */ 3HEADER; 4FILE_DESCRIPTION(('Gs002'),'2;1'); 5FILE_NAME('Gs002.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.0,0.0,0.0)); 11#2=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=TOROIDAL_SURFACE('gs002_lemon',#4,2.0,3.0); 15#6=CARTESIAN_POINT('',(5.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=VERTEX_LOOP('gs002_vloop',#7); 18#9=FACE_OUTER_BOUND('gs002_fob',#8,.T.); 19#10=ADVANCED_FACE('gs002_face',(#9),#5,.T.); 20#11=OPEN_SHELL('gs002_shell',(#10)); 21#12=SHELL_BASED_SURFACE_MODEL('',()); 22#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 23#9051=PRODUCT('Gs002','Gs002','',(#9050)); 24#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 25#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 26#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 27#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 28#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 29#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 30#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 31#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 32#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 33#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#12),#9060); 34#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 35ENDSEC; 36END-ISO-10303-21;