step-examples/12-2c-surfaces/Gs104.stp
Sources
- OCCT/ShapeAnalysis (see fixture)
Description
ShapeAnalysis_Surface.IsDegenerated fails to detect degenerate SURFACE_OF_REVOLUTION where the profile curve coincides with the axis of revolution. The cross-product test produces near-zero result but is not properly classified as singular.
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the degenerate profile: the SURFACE_OF_REVOLUTION's generating curve lies on the rotation axis itself, so every point of the profile stays fixed under rotation and the swept 'surface' has zero area everywhere. A kernel should detect that the profile's tangent is parallel to the axis direction along its whole length (not just at isolated points) and reject the surface as degenerate rather than silently building a face with no real extent.
Notes
synthesized from earlier wave; backfilled from fixture comment
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gs104: SURFACE_OF_REVOLUTION (profile LINE on Z-axis) IS ADVANCED_FACE.face_geometry; face boundary on degenerate swept surface IS the mechanism wired into face topology; IsDegenerated() cross-product test near-zero not classified singular IS the defect; shape_null */ 3HEADER; 4FILE_DESCRIPTION(('Gs104'),'2;1'); 5FILE_NAME('Gs104.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=VECTOR('',#2,1.0); 13#4=LINE('',#1,#3); 14#5=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#6=DIRECTION('',(0.0,0.0,1.0)); 16#7=DIRECTION('',(1.0,0.0,0.0)); 17#8=AXIS1_PLACEMENT('gs104_axis',#5,#6); 18#9=SURFACE_OF_REVOLUTION('gs104_sor',#4,#8); 19#10=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 20#11=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#12=CARTESIAN_POINT('',(0.0,0.0,0.0)); 22#13=CARTESIAN_POINT('',(0.0,0.0,1.0)); 23#14=CARTESIAN_POINT('',(0.0,0.0,1.0)); 24#15=VERTEX_POINT('',#11); 25#16=VERTEX_POINT('',#12); 26#17=VERTEX_POINT('',#13); 27#18=VERTEX_POINT('',#14); 28#19=CARTESIAN_POINT('',(0.0,0.0,0.0)); 29#20=DIRECTION('',(0.0,0.0,1.0)); 30#21=VECTOR('',#20,0.001); 31#22=LINE('',#19,#21); 32#23=CARTESIAN_POINT('',(0.0,0.0)); 33#24=DIRECTION('',(1.0,0.0)); 34#25=VECTOR('',#24,6.28318530718); 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,0.0,0.0)); 41#32=DIRECTION('',(0.0,0.0,1.0)); 42#33=VECTOR('',#32,1.0); 43#34=LINE('',#31,#33); 44#35=CARTESIAN_POINT('',(6.28318530718,0.0)); 45#36=DIRECTION('',(0.0,1.0)); 46#37=VECTOR('',#36,1.0); 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,0.0,1.0)); 53#44=DIRECTION('',(0.0,0.0,-1.0)); 54#45=VECTOR('',#44,0.001); 55#46=LINE('',#43,#45); 56#47=CARTESIAN_POINT('',(6.28318530718,1.0)); 57#48=DIRECTION('',(-1.0,0.0)); 58#49=VECTOR('',#48,6.28318530718); 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('',(0.0,0.0,1.0)); 65#56=DIRECTION('',(0.0,0.0,-1.0)); 66#57=VECTOR('',#56,1.0); 67#58=LINE('',#55,#57); 68#59=CARTESIAN_POINT('',(0.0,1.0)); 69#60=DIRECTION('',(0.0,-1.0)); 70#61=VECTOR('',#60,1.0); 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('Gs104','Gs104','',(#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;