Gp177 — Edge's interior 3D curve passes directly over a sphere pole, strictly between its endpoints

§12.2a pcurve (sub-class: edge crossing a surface singularity in its interior — `tkshh-edge-crossing-surface-singularity`, subvariant a)

P2 — spec deviation (no data loss)

geometry

Sources

Sender

Translators/exporters that represent a meridian-crossing edge as a single curve without pre-splitting at the pole, relying on the receiver's healer to do it.

Description

A `SPHERICAL_SURFACE` (radius 1) face has one edge (`polar_edge`) whose 3D curve is the great-circle `CIRCLE` lying in the XZ-plane, running from equator vertex `A=(1,0,0)` through the NORTH POLE `(0,0,1)` — strictly the parameter-range MIDPOINT, not an endpoint — down to equator vertex `B=(-1,0,0)`. This is the case Xp013 and Gp048 do not cover: both of those touch the singularity only at an edge ENDPOINT (a vertex sits exactly at the apex/pole). The edge's pcurve is a single straight UV line `v=0` constant from `(u=0,v=0)` to `(u=pi,v=0)` — the naive "apex-adjacent" patch job the work packet calls insufficient: it treats the edge as though it stayed on the equator the whole way, when the true path needs `u` to jump `0->pi` exactly at `v=pi/2` (the pole), which one pcurve cannot represent. A second, healthy edge closes the loop via the equator's *other* semicircle (through the back, negative-Y side, touching neither pole), giving a real 2-edge lune face with non-degenerate area.

Reproducer recipe

`SPHERICAL_SURFACE` radius 1; `EDGE_CURVE` whose 3D curve is a great-circle `CIRCLE` oriented so its parameter range's midpoint lands exactly on the pole (not an endpoint); its `PCURVE` is a single straight line that does not reflect the pole crossing; a second `EDGE_CURVE` (equatorial semicircle avoiding both poles) closes a 2-edge `EDGE_LOOP`.

Expected kernel behavior

detect that the 3D curve's interior crosses the surface singularity, split the edge into two sub-edges at the singularity parameter (inserting a degenerate vertex at the pole), and give each sub-edge its own clean pcurve — not patch a single pcurve near the apex.

Notes

**See also**: Xp013 (apex touched only at a shared, non-manifold vertex — an endpoint case), Gp048 (apex is an edge endpoint, degenerate pcurve construction), Gp178 (companion subvariant: pole + periodic seam together). **OCC behavior**: heals, but not into a clean 2-sub-edge split — OCCT fragments the single input edge into many small sub-edges with escalating vertex tolerance as they approach the pole (from 1 input edge and 1 input face the healer emits several faces and a double-digit sub-edge count — observed as both 3 faces/18 edges and 6 faces/24 edges on different runs of the SAME build), rather than the idealized single split at the singularity parameter. The exact tally is NOT reproducible run-to-run, so the tier-3 assertion pins only the invariant that matters — fragmentation occurred (`n_faces_total > 1` from one input face) — rather than a brittle exact count. `shape(1)` (root count) on both heal on/off; `brepcheck` reports valid. gmsh triangulates the fragmented result to `shape(38)` (CI-Linux authoritative; macOS-ARM reports `shape(32)` on the same bytes — the fragmentation is a floating-point-sensitive tessellation artifact, so this count is platform-dependent and the CI value is the baseline). Synonyms: "edge interior crosses cone apex or sphere pole", "single pcurve cannot represent a pole-crossing edge", "apex-adjacent pcurve patch insufficient for interior singularity", "edge must be split at singularity parameter not just re-pcurved", "great-circle edge passes through pole at its midpoint".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(38) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Xp013, Gp048, Gp178

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp177: SPHERICAL_SURFACE edge whose 3D curve (a great-circle CIRCLE) climbs from equator vertex A=(1,0,0) through the NORTH POLE (0,0,1) -- strictly interior to the edge's parameter range, not an endpoint -- down to equator vertex B=(-1,0,0). Its pcurve is a single straight UV line v=0 constant (u:0->pi), naively treating the edge as if it stayed on the equator; the true path needs u to jump 0->pi exactly at v=pi/2 (the pole), which one pcurve cannot represent -- correct healing requires splitting into two sub-edges at the pole, not patching one apex-adjacent pcurve. */
3HEADER;
4FILE_DESCRIPTION(('Gp177'),'2;1');
5FILE_NAME('Gp177.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=(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=VERTEX_POINT('',#7);
19#10=VERTEX_POINT('',#8);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=DIRECTION('',(0.0,-1.0,0.0));
22#13=DIRECTION('',(1.0,0.0,0.0));
23#14=AXIS2_PLACEMENT_3D('',#11,#12,#13);
24#15=CIRCLE('polar_great_circle',#14,1.0);
25#16=CARTESIAN_POINT('',(0.0,0.0));
26#17=DIRECTION('',(1.0,0.0));
27#18=VECTOR('',#17,3.14159265359);
28#19=LINE('',#16,#18);
29#20=DEFINITIONAL_REPRESENTATION('pc_polar_def',(#19),#6);
30#21=PCURVE('pc_polar_wrong',#5,#20);
31#22=SURFACE_CURVE('polar_edge_sc',#15,(#21),.PCURVE_S1.);
32#23=EDGE_CURVE('polar_edge',#9,#10,#22,.T.);
33#24=CARTESIAN_POINT('',(0.0,0.0,0.0));
34#25=DIRECTION('',(0.0,0.0,1.0));
35#26=DIRECTION('',(-1.0,0.0,0.0));
36#27=AXIS2_PLACEMENT_3D('',#24,#25,#26);
37#28=CIRCLE('equator_back_circle',#27,1.0);
38#29=CARTESIAN_POINT('',(3.14159265359,0.0));
39#30=DIRECTION('',(1.0,0.0));
40#31=VECTOR('',#30,3.14159265359);
41#32=LINE('',#29,#31);
42#33=DEFINITIONAL_REPRESENTATION('pc_eq_def',(#32),#6);
43#34=PCURVE('pc_eq_back',#5,#33);
44#35=SURFACE_CURVE('equator_back_sc',#28,(#34),.PCURVE_S1.);
45#36=EDGE_CURVE('equator_back_edge',#10,#9,#35,.T.);
46#37=ORIENTED_EDGE('',$,$,#23,.T.);
47#38=ORIENTED_EDGE('',$,$,#36,.T.);
48#39=EDGE_LOOP('',(#37,#38));
49#40=FACE_OUTER_BOUND('',#39,.T.);
50#41=ADVANCED_FACE('',(#40),#5,.T.);
51#42=OPEN_SHELL('',(#41));
52#43=SHELL_BASED_SURFACE_MODEL('',(#42));
53#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
54#9051=PRODUCT('Gp177','Gp177','',(#9050));
55#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
56#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
57#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
58#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
59#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
60#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
61#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
62#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
63#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
64#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#43),#9060);
65#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
66ENDSEC;
67END-ISO-10303-21;