step-examples/12-2c-surfaces/Gs056.stp
Sources
- OCCT MANTIS#0027722
- bug-reporter language: "STEP error for ellipse revol shape", "revolution of ellipse fails on import", "degenerate surface from ellipse-of-revolution". (OCCT MANTIS tracker 502 as of 2026-05-02)
Sender
Modellers that emit `SURFACE_OF_REVOLUTION` whose generatrix is an `ELLIPSE` and whose axis passes through the ellipse centre.
Description
A `SURFACE_OF_REVOLUTION` references an `ELLIPSE` as its swept curve and a vertical axis that passes through the ellipse's centre. The resulting analytic surface is degenerate at both poles where the generatrix meets the axis (zero-radius circles). On import, OCCT cannot recover a usable parametric surface; the face appears empty, geometry is dropped silently, or a heal pass replaces the analytic with a high-cost B-spline approximation. Writers should refuse to emit this construction and instead emit two half-spheres / a torus depending on whether the axis is in-plane.
Reproducer recipe
`#1=ELLIPSE('',#2,1.0,0.5);` with `#2` an axis placement at the origin; `#10=SURFACE_OF_REVOLUTION('',#11,#1);` with `#11` an axis through the ellipse centre. Importer should warn or normalize.
Expected kernel behavior
warn-and-proceed — detect axis-through-centre construction, emit `W_DEGENERATE_REVOLUTION_AXIS`, and either heal to canonical analytic (sphere / torus) or fall back to B-spline; never silently drop the face.
Notes
**See also**: Gs049, A083. Synonyms: "STEP error for ellipse revol shape", "ellipse revolved around its own centre", "SURFACE_OF_REVOLUTION poles", "degenerate ellipse-of-revolution surface".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(12) ifc=schema_n/a
Byte assertions
contains(b'SURFACE_OF_REVOLUTION')contains(b'ELLIPSE')
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs056: SURFACE_OF_REVOLUTION(swept_curve=ELLIPSE) IS ADVANCED_FACE.face_geometry; ELLIPSE centre at origin with revolution axis through that same origin IS the defect; axis-through-centre degenerate revolution IS wired into face topology; shape_null (degenerate poles, strict warn-and-proceed) */ 3HEADER; 4FILE_DESCRIPTION(('Gs056'),'2;1'); 5FILE_NAME('Gs056.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('gs056_ell_ax',#1,#2,#3); 14#5=ELLIPSE('gs056_ellipse',#4,1.0,0.5); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=DIRECTION('',(0.0,0.0,1.0)); 17#8=AXIS1_PLACEMENT('gs056_rev_ax',#6,#7); 18#9=SURFACE_OF_REVOLUTION('gs056_sor',#5,#8); 19#10=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 20#11=CARTESIAN_POINT('',(1.0,0.0,0.0)); 21#12=CARTESIAN_POINT('',(0.0,1.0,0.0)); 22#13=CARTESIAN_POINT('',(0.0,1.0,0.5)); 23#14=CARTESIAN_POINT('',(1.0,0.0,0.5)); 24#15=VERTEX_POINT('',#11); 25#16=VERTEX_POINT('',#12); 26#17=VERTEX_POINT('',#13); 27#18=VERTEX_POINT('',#14); 28#19=CARTESIAN_POINT('',(1.0,0.0,0.0)); 29#20=DIRECTION('',(-1.0,1.0,0.0)); 30#21=VECTOR('',#20,1.41421356237); 31#22=LINE('',#19,#21); 32#23=CARTESIAN_POINT('',(0.0,0.0)); 33#24=DIRECTION('',(1.0,0.0)); 34#25=VECTOR('',#24,1.57079632679); 35#26=LINE('',#23,#25); 36#27=DEFINITIONAL_REPRESENTATION('pcdef',(#26),#10); 37#28=PCURVE('pc',#9,#27); 38#29=SURFACE_CURVE('sc',#22,(#28),.PCURVE_S1.); 39#30=EDGE_CURVE('ec',#15,#16,#29,.T.); 40#31=CARTESIAN_POINT('',(0.0,1.0,0.0)); 41#32=DIRECTION('',(0.0,0.0,1.0)); 42#33=VECTOR('',#32,0.5); 43#34=LINE('',#31,#33); 44#35=CARTESIAN_POINT('',(1.57079632679,0.0)); 45#36=DIRECTION('',(0.0,1.0)); 46#37=VECTOR('',#36,1.57079632679); 47#38=LINE('',#35,#37); 48#39=DEFINITIONAL_REPRESENTATION('pcdef',(#38),#10); 49#40=PCURVE('pc',#9,#39); 50#41=SURFACE_CURVE('sc',#34,(#40),.PCURVE_S1.); 51#42=EDGE_CURVE('ec',#16,#17,#41,.T.); 52#43=CARTESIAN_POINT('',(0.0,1.0,0.5)); 53#44=DIRECTION('',(1.0,-1.0,0.0)); 54#45=VECTOR('',#44,1.41421356237); 55#46=LINE('',#43,#45); 56#47=CARTESIAN_POINT('',(1.57079632679,1.57079632679)); 57#48=DIRECTION('',(-1.0,0.0)); 58#49=VECTOR('',#48,1.57079632679); 59#50=LINE('',#47,#49); 60#51=DEFINITIONAL_REPRESENTATION('pcdef',(#50),#10); 61#52=PCURVE('pc',#9,#51); 62#53=SURFACE_CURVE('sc',#46,(#52),.PCURVE_S1.); 63#54=EDGE_CURVE('ec',#17,#18,#53,.T.); 64#55=CARTESIAN_POINT('',(1.0,0.0,0.5)); 65#56=DIRECTION('',(0.0,0.0,-1.0)); 66#57=VECTOR('',#56,0.5); 67#58=LINE('',#55,#57); 68#59=CARTESIAN_POINT('',(0.0,1.57079632679)); 69#60=DIRECTION('',(0.0,-1.0)); 70#61=VECTOR('',#60,1.57079632679); 71#62=LINE('',#59,#61); 72#63=DEFINITIONAL_REPRESENTATION('pcdef',(#62),#10); 73#64=PCURVE('pc',#9,#63); 74#65=SURFACE_CURVE('sc',#58,(#64),.PCURVE_S1.); 75#66=EDGE_CURVE('ec',#18,#15,#65,.T.); 76#67=ORIENTED_EDGE('',$,$,#30,.T.); 77#68=ORIENTED_EDGE('',$,$,#42,.T.); 78#69=ORIENTED_EDGE('',$,$,#54,.T.); 79#70=ORIENTED_EDGE('',$,$,#66,.T.); 80#71=EDGE_LOOP('',(#67,#68,#69,#70)); 81#72=FACE_OUTER_BOUND('',#71,.T.); 82#73=ADVANCED_FACE('',(#72),#9,.T.); 83#74=OPEN_SHELL('',(#73)); 84#75=SHELL_BASED_SURFACE_MODEL('',(#74)); 85#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 86#9051=PRODUCT('Gs056','Gs056','',(#9050)); 87#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 88#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 89#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 90#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 91#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 92#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 93#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 94#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 95#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 96#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#75),#9060); 97#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 98ENDSEC; 99END-ISO-10303-21;