step-examples/12-2c-surfaces/Gs119.stp
Sources
- OCCT/ShapeAnalysis (see fixture)
Description
ShapeAnalysis_Surface.IsDegenerated CONICAL_SURFACE zero-radius cone with radius 0 and arbitrary semi-angle (effectively a degenerate point). IsDegenerated should detect but the radius test uses `radius > 0` not abs(radius).
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the degenerate cone: the CONICAL_SURFACE has reference radius 0.0. A cone with zero reference radius collapses its entire v=0 circle to the apex point regardless of sign, so a kernel testing for this degeneracy must compare the radius against zero directly (not merely check radius > 0, which a negative-radius encoding could also fail) and reject building a normal conic face from a zero-radius definition.
Notes
synthesized from earlier wave; backfilled from fixture comment
Expected validation
occt=shape(1)/shape(1) gmsh=shape(5) ifc=schema_n/a
Tier-3 assertions
load == "ok"face[0].surface_type == "cone"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gs119: CONICAL_SURFACE (radius=0.0, semi_angle=pi/4) IS ADVANCED_FACE.face_geometry; zero-radius cone degenerate at apex IS the mechanism wired into face topology; IsDegenerated() strict radius>0 without abs() fails to detect zero radius IS the defect; shape_null */ 3HEADER; 4FILE_DESCRIPTION(('Gs119'),'2;1'); 5FILE_NAME('Gs119.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('gs119_cone_ax',#1,#2,#3); 14#5=CONICAL_SURFACE('gs119_cone',#4,0.0,0.785398); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(0.707106781187,0.0,0.707106781187)); 18#9=CARTESIAN_POINT('',(0.707106781187,0.0,0.707106781187)); 19#10=VERTEX_POINT('',#7); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=DIRECTION('',(0.0,0.0,1.0)); 25#16=VECTOR('',#15,0.001); 26#17=LINE('',#14,#16); 27#18=CARTESIAN_POINT('',(0.0,0.0)); 28#19=DIRECTION('',(0.0,1.0)); 29#20=VECTOR('',#19,1.0); 30#21=LINE('',#18,#20); 31#22=DEFINITIONAL_REPRESENTATION('pcdef',(#21),#6); 32#23=PCURVE('pc',#5,#22); 33#24=SURFACE_CURVE('sc',#17,(#23),.PCURVE_S1.); 34#25=EDGE_CURVE('ec',#10,#12,#24,.T.); 35#26=CARTESIAN_POINT('',(0.707106781187,0.0,0.707106781187)); 36#27=DIRECTION('',(0.0,1.0,0.0)); 37#28=VECTOR('',#27,0.001); 38#29=LINE('',#26,#28); 39#30=CARTESIAN_POINT('',(0.0,1.0)); 40#31=DIRECTION('',(1.0,0.0)); 41#32=VECTOR('',#31,1.0); 42#33=LINE('',#30,#32); 43#34=DEFINITIONAL_REPRESENTATION('pcdef',(#33),#6); 44#35=PCURVE('pc',#5,#34); 45#36=SURFACE_CURVE('sc',#29,(#35),.PCURVE_S1.); 46#37=EDGE_CURVE('ec',#12,#13,#36,.T.); 47#38=CARTESIAN_POINT('',(0.707106781187,0.0,0.707106781187)); 48#39=DIRECTION('',(0.0,0.0,-1.0)); 49#40=VECTOR('',#39,0.001); 50#41=LINE('',#38,#40); 51#42=CARTESIAN_POINT('',(1.0,1.0)); 52#43=DIRECTION('',(0.0,-1.0)); 53#44=VECTOR('',#43,1.0); 54#45=LINE('',#42,#44); 55#46=DEFINITIONAL_REPRESENTATION('pcdef',(#45),#6); 56#47=PCURVE('pc',#5,#46); 57#48=SURFACE_CURVE('sc',#41,(#47),.PCURVE_S1.); 58#49=EDGE_CURVE('ec',#13,#11,#48,.T.); 59#50=CARTESIAN_POINT('',(0.0,0.0,0.0)); 60#51=DIRECTION('',(0.0,1.0,0.0)); 61#52=VECTOR('',#51,0.001); 62#53=LINE('',#50,#52); 63#54=CARTESIAN_POINT('',(1.0,0.0)); 64#55=DIRECTION('',(-1.0,0.0)); 65#56=VECTOR('',#55,1.0); 66#57=LINE('',#54,#56); 67#58=DEFINITIONAL_REPRESENTATION('pcdef',(#57),#6); 68#59=PCURVE('pc',#5,#58); 69#60=SURFACE_CURVE('sc',#53,(#59),.PCURVE_S1.); 70#61=EDGE_CURVE('ec',#11,#10,#60,.T.); 71#62=ORIENTED_EDGE('',$,$,#25,.T.); 72#63=ORIENTED_EDGE('',$,$,#37,.T.); 73#64=ORIENTED_EDGE('',$,$,#49,.T.); 74#65=ORIENTED_EDGE('',$,$,#61,.T.); 75#66=EDGE_LOOP('',(#62,#63,#64,#65)); 76#67=FACE_OUTER_BOUND('',#66,.T.); 77#68=ADVANCED_FACE('',(#67),#5,.T.); 78#69=OPEN_SHELL('',(#68)); 79#70=SHELL_BASED_SURFACE_MODEL('',(#69)); 80#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 81#9051=PRODUCT('Gs119','Gs119','',(#9050)); 82#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 83#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 84#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 85#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 86#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 87#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 88#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 89#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 90#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 91#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#70),#9060); 92#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 93ENDSEC; 94END-ISO-10303-21;