step-examples/12-3b-wires/Twi035.stp
Sources
- 05-occt-shapefix.md F073 (FixShifted note)
Description
A sphere is encoded by a face whose outer wire consists of two meridian edges (going from north to south pole and back). Special-case for `FixShifted`.
Reproducer recipe
STEP `ADVANCED_FACE` on `SPHERICAL_SURFACE` with two meridian `EDGE_CURVE`s + apex/pole degenerate edges.
Expected kernel behavior
Heal and accept: normalize the meridian-pair pattern; do not coerce pcurves by shifting; repair by inserting pole degenerate edges if missing.
Notes
Synonyms: "sphere face described by two meridians", "north-to-south pole edge pair on sphere", "two meridian wire on spherical surface", "lune-shaped sphere face", "meridian-pair wire pattern".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(5) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
face[0].surface_type == "sphere"n_edges_total >= 2n_vertices_total >= 4brepcheck.valid == Trueface[0].quadric.radius == 1.0edge[0].curve_type == "circle"edge[0].analytic.radius == 1.0edge[1].curve_type == "circle"edge[1].analytic.radius == 1.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi035: OPEN_SHELL with one ADVANCED_FACE on a SPHERICAL_SURFACE (radius 1, centre at origin); FACE_OUTER_BOUND references an EDGE_LOOP containing: degenerate north-pole edge (v_northâv_north, zero-length), left meridian arc from north pole to south pole (theta=0 half-circle), degenerate south-pole edge (v_southâv_south, zero-length), right meridian arc from south pole to north pole (theta=Ï half-circle); two meridian EDGE_CURVEs in the same EDGE_LOOP IS the mechanism â lune-shaped sphere face needing FixShifted normalisation; EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; kernel must normalise pcurves; do not coerce by shifting */ 3HEADER; 4FILE_DESCRIPTION(('Twi035'),'2;1'); 5FILE_NAME('Twi035.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=SPHERICAL_SURFACE('',#4,1.0); 15#6=CARTESIAN_POINT('',(0.0,0.0,1.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 18#9=VERTEX_POINT('',#8); 19#10=DIRECTION('',(1.0,0.0,0.0)); 20#11=VECTOR('',#10,0.0); 21#12=CARTESIAN_POINT('',(0.0,0.0,1.0)); 22#13=LINE('',#12,#11); 23#14=EDGE_CURVE('',#7,#7,#13,.T.); 24#15=ORIENTED_EDGE('',*,*,#14,.T.); 25#16=DIRECTION('',(1.0,0.0,0.0)); 26#17=VECTOR('',#16,0.0); 27#18=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 28#19=LINE('',#18,#17); 29#20=EDGE_CURVE('',#9,#9,#19,.T.); 30#21=ORIENTED_EDGE('',*,*,#20,.T.); 31#22=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#23=DIRECTION('',(0.0,-1.0,0.0)); 33#24=DIRECTION('',(0.0,0.0,1.0)); 34#25=AXIS2_PLACEMENT_3D('',#22,#23,#24); 35#26=CIRCLE('',#25,1.0); 36#27=EDGE_CURVE('',#7,#9,#26,.T.); 37#28=ORIENTED_EDGE('',*,*,#27,.T.); 38#29=CARTESIAN_POINT('',(0.0,0.0,0.0)); 39#30=DIRECTION('',(0.0,1.0,0.0)); 40#31=DIRECTION('',(0.0,0.0,-1.0)); 41#32=AXIS2_PLACEMENT_3D('',#29,#30,#31); 42#33=CIRCLE('',#32,1.0); 43#34=EDGE_CURVE('',#9,#7,#33,.T.); 44#35=ORIENTED_EDGE('',*,*,#34,.T.); 45#36=EDGE_LOOP('',(#15,#28,#21,#35)); 46#37=FACE_OUTER_BOUND('',#36,.T.); 47#38=ADVANCED_FACE('',(#37),#5,.T.); 48#39=OPEN_SHELL('',(#38)); 49#40=SHELL_BASED_SURFACE_MODEL('',(#39)); 50#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 51#9051=PRODUCT('Twi035','Twi035','',(#9050)); 52#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 53#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 54#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 55#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 56#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 57#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 58#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 59#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 60#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 61#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#40),#9060); 62#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 63ENDSEC; 64END-ISO-10303-21;