step-examples/12-2c-surfaces/Gs099.stp
Sources
- OCCT/ShapeAnalysis (see fixture)
Description
ShapeAnalysis_Surface.Singularity() must report both poles of a sphere, but iso-curve sampling (e.g., UIso/VIso sampling) may miss poles if orientation places them outside the parametric trim bounds. Newton iteration on iso-curve sampling fails to detect singular points at poles.
Reproducer recipe
Expected kernel behavior
Accept: the face's trim places its southern boundary exactly at the sphere's south pole (v=-pi/2), the ordinary degenerate-pole boundary any polar spherical trim produces. A kernel must recognize and model that boundary as a degenerate point -- not a normal edge with a well-defined tangent everywhere -- so downstream sampling or meshing does not silently skip or mis-place the pole.
Notes
synthesized from earlier wave; backfilled from fixture comment
Expected validation
occt=shape(1)/shape(1) gmsh=shape(8) ifc=schema_n/a
Tier-3 assertions
load == "ok"face[0].surface_type == "sphere"face[0].quadric.radius == 1.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gs099: SPHERICAL_SURFACE (radius=1.0, Z-axis) IS ADVANCED_FACE.face_geometry; southern hemisphere trim with south pole at v=-1.5707963267948966 (-Ï/2) at trim boundary IS the mechanism wired into face topology; iso-curve sampling misses south-pole singularity IS the defect; shape_null */ 3HEADER; 4FILE_DESCRIPTION(('Gs099'),'2;1'); 5FILE_NAME('Gs099.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('gs099_sph_ax',#1,#2,#3); 14#5=SPHERICAL_SURFACE('gs099_sphere',#4,1.0); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 19#10=VERTEX_POINT('',#7); 20#11=VERTEX_POINT('',#8); 21#12=VERTEX_POINT('',#9); 22#13=CARTESIAN_POINT('',(1.0,0.0,0.0)); 23#14=DIRECTION('',(-1.0,0.0,0.0)); 24#15=VECTOR('',#14,2.0); 25#16=LINE('',#13,#15); 26#17=CARTESIAN_POINT('',(0.0,0.0)); 27#18=DIRECTION('',(1.0,0.0)); 28#19=VECTOR('',#18,3.14159265359); 29#20=LINE('',#17,#19); 30#21=DEFINITIONAL_REPRESENTATION('pcdef',(#20),#6); 31#22=PCURVE('pc',#5,#21); 32#23=SURFACE_CURVE('sc',#16,(#22),.PCURVE_S1.); 33#24=EDGE_CURVE('ec',#10,#11,#23,.T.); 34#25=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 35#26=DIRECTION('',(0.0,0.0,-1.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#25,#27); 38#29=CARTESIAN_POINT('',(3.14159265359,0.0)); 39#30=DIRECTION('',(0.0,-1.0)); 40#31=VECTOR('',#30,1.57079632679); 41#32=LINE('',#29,#31); 42#33=DEFINITIONAL_REPRESENTATION('pcdef',(#32),#6); 43#34=PCURVE('pc',#5,#33); 44#35=SURFACE_CURVE('sc',#28,(#34),.PCURVE_S1.); 45#36=EDGE_CURVE('ec',#11,#12,#35,.T.); 46#37=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 47#38=DIRECTION('',(0.0,0.0,-1.0)); 48#39=VECTOR('',#38,0.001); 49#40=LINE('',#37,#39); 50#41=CARTESIAN_POINT('',(3.14159265359,-1.57079632679)); 51#42=DIRECTION('',(-1.0,0.0)); 52#43=VECTOR('',#42,3.14159265359); 53#44=LINE('',#41,#43); 54#45=DEFINITIONAL_REPRESENTATION('pcdef_sp',(#44),#6); 55#46=PCURVE('pc_sp',#5,#45); 56#47=SURFACE_CURVE('sc_sp',#40,(#46),.PCURVE_S1.); 57#48=EDGE_CURVE('ec_sp_degen',#12,#12,#47,.T.); 58#49=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 59#50=DIRECTION('',(1.0,0.0,1.0)); 60#51=VECTOR('',#50,1.41421356237); 61#52=LINE('',#49,#51); 62#53=CARTESIAN_POINT('',(0.0,-1.57079632679)); 63#54=DIRECTION('',(0.0,1.0)); 64#55=VECTOR('',#54,1.57079632679); 65#56=LINE('',#53,#55); 66#57=DEFINITIONAL_REPRESENTATION('pcdef',(#56),#6); 67#58=PCURVE('pc',#5,#57); 68#59=SURFACE_CURVE('sc',#52,(#58),.PCURVE_S1.); 69#60=EDGE_CURVE('ec',#12,#10,#59,.T.); 70#61=ORIENTED_EDGE('',$,$,#24,.T.); 71#62=ORIENTED_EDGE('',$,$,#36,.T.); 72#63=ORIENTED_EDGE('',$,$,#48,.T.); 73#64=ORIENTED_EDGE('',$,$,#60,.T.); 74#65=EDGE_LOOP('',(#61,#62,#63,#64)); 75#66=FACE_OUTER_BOUND('',#65,.T.); 76#67=ADVANCED_FACE('',(#66),#5,.T.); 77#68=OPEN_SHELL('',(#67)); 78#69=SHELL_BASED_SURFACE_MODEL('',(#68)); 79#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 80#9051=PRODUCT('Gs099','Gs099','',(#9050)); 81#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 82#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 83#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 84#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 85#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 86#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 87#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 88#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 89#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 90#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#69),#9060); 91#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 92ENDSEC; 93END-ISO-10303-21;