Gp178 — Contour wrapping both a degenerated pole and the periodic seam, missing half its seam pcurve pair

§12.2a pcurve (sub-class: pole + seam contour, pcurve rebuild — `tkshh-edge-crossing-surface-singularity`, subvariant b)

P2 — spec deviation (no data loss)

geometry

Sources

Sender

Translators/exporters emitting a spherical-cap-style face whose seam edge is only partially pcurve'd.

Description

A `SPHERICAL_SURFACE` (radius 1) spherical-cap face is bounded by the classic UV-rectangle contour: `u` spans the full `[0, 2*pi]` (wrapping the periodic seam) and `v` spans `[v0, pi/2]` (reaching the degenerate pole row). The contour has three geometrically distinct edges: a healthy latitude-circle bottom rim (self-loop, `v=v0`), a degenerate zero-radius `CIRCLE` at the pole (self-loop, `v=pi/2`), and a meridian-arc seam edge at `u=0` that — per Gp013's CATIA-seam idiom — is referenced TWICE in the loop (once for the `u=0` bank, once for the `u=2*pi` bank). THE DEFECT: unlike Gp013 (which gives its shared seam edge both pcurves, one per bank), this seam edge's `SURFACE_CURVE` carries only ONE pcurve; the second (`u=2*pi`) occurrence in the loop has no matching pcurve at all.

Reproducer recipe

`SPHERICAL_SURFACE`; 4-edge `EDGE_LOOP` = [bottom rim (fwd), seam edge (fwd), pole edge (rev), seam edge (rev)] where the seam `EDGE_CURVE`'s `SURFACE_CURVE.associated_geometry` holds a single `PCURVE`, not two.

Expected kernel behavior

detect that the contour wraps both a degenerate pole and the periodic seam, and rebuild the missing seam-bank pcurve from the 3D curve (with over-degenerate adjustment disabled) rather than leaving the second occurrence unresolved.

Notes

**See also**: Gp013 (the fully-pcurve'd U-direction seam idiom this fixture deliberately under-supplies), Gp177 (companion subvariant: interior pole crossing without a seam). **OCC behavior**: heals fully — OCCT rebuilds the missing pcurve and returns a correct, non-degenerate 4-edge, 8-vertex spherical cap whose area (`4.4264`) matches the closed-form cap area `2*pi*(1-sin(v0))` for `v0=0.3` to 4 decimal places. `shape(1)` heal on/off identical; gmsh triangulates to `shape(6)`, matching Gp013's own gmsh count. Synonyms: "contour wraps degenerate pole and periodic seam", "seam edge missing one of two required pcurves", "spherical cap UV-rectangle boundary with under-pcurve'd seam", "AdjustOverDegenMode pcurve rebuild", "half a seam pcurve pair forces reconstruction".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gp013, Gp177

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp178: Spherical-cap UV-rectangle contour (u:0->2pi wraps the periodic seam, v:v0->pi/2 reaches the degenerate pole row) whose shared seam EDGE_CURVE is used twice in the loop (u=0 bank and u=2pi bank, CATIA-seam idiom per Gp013) but its SURFACE_CURVE carries only ONE pcurve instead of two -- the u=2pi occurrence has no matching pcurve, forcing a rebuild rather than reuse. */
3HEADER;
4FILE_DESCRIPTION(('Gp178'),'2;1');
5FILE_NAME('Gp178.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('',(0.955336489126,0.0,0.295520206661));
17#8=CARTESIAN_POINT('',(0.0,0.0,1.0));
18#9=VERTEX_POINT('',#7);
19#10=VERTEX_POINT('',#8);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.295520206661));
21#12=DIRECTION('',(0.0,0.0,1.0));
22#13=DIRECTION('',(1.0,0.0,0.0));
23#14=AXIS2_PLACEMENT_3D('',#11,#12,#13);
24#15=CIRCLE('bottom_rim',#14,0.955336489125606);
25#16=CARTESIAN_POINT('',(0.0,0.3));
26#17=DIRECTION('',(1.0,0.0));
27#18=VECTOR('',#17,6.28318530718);
28#19=LINE('',#16,#18);
29#20=DEFINITIONAL_REPRESENTATION('pc_bot_def',(#19),#6);
30#21=PCURVE('bot_pcurve',#5,#20);
31#22=SURFACE_CURVE('bottom_rim_sc',#15,(#21),.PCURVE_S1.);
32#23=EDGE_CURVE('bottom_edge',#9,#9,#22,.T.);
33#24=CARTESIAN_POINT('',(0.0,0.0,0.0));
34#25=DIRECTION('',(0.0,-1.0,0.0));
35#26=DIRECTION('',(1.0,0.0,0.0));
36#27=AXIS2_PLACEMENT_3D('',#24,#25,#26);
37#28=CIRCLE('seam_meridian',#27,1.0);
38#29=TRIMMED_CURVE('seam_trim',#28,(PARAMETER_VALUE(0.3)),(PARAMETER_VALUE(1.5707963267948966)),.T.,.PARAMETER.);
39#30=CARTESIAN_POINT('',(0.0,0.3));
40#31=DIRECTION('',(0.0,1.0));
41#32=VECTOR('',#31,1.27079632679);
42#33=LINE('',#30,#32);
43#34=DEFINITIONAL_REPRESENTATION('pc_seam_u0_def',(#33),#6);
44#35=PCURVE('seam_pcurve_u0_only',#5,#34);
45#36=SURFACE_CURVE('seam_sc',#29,(#35),.PCURVE_S1.);
46#37=EDGE_CURVE('seam_edge',#9,#10,#36,.T.);
47#38=AXIS2_PLACEMENT_3D('',#8,#2,#3);
48#39=CIRCLE('pole_degenerate',#38,0.0);
49#40=CARTESIAN_POINT('',(6.28318530718,1.57079632679));
50#41=DIRECTION('',(-1.0,0.0));
51#42=VECTOR('',#41,6.28318530718);
52#43=LINE('',#40,#42);
53#44=DEFINITIONAL_REPRESENTATION('pc_top_def',(#43),#6);
54#45=PCURVE('top_pcurve',#5,#44);
55#46=SURFACE_CURVE('pole_sc',#39,(#45),.PCURVE_S1.);
56#47=EDGE_CURVE('pole_edge',#10,#10,#46,.T.);
57#48=ORIENTED_EDGE('',$,$,#23,.T.);
58#49=ORIENTED_EDGE('',$,$,#37,.T.);
59#50=ORIENTED_EDGE('',$,$,#47,.F.);
60#51=ORIENTED_EDGE('',$,$,#37,.F.);
61#52=EDGE_LOOP('',(#48,#49,#50,#51));
62#53=FACE_OUTER_BOUND('',#52,.T.);
63#54=ADVANCED_FACE('',(#53),#5,.T.);
64#55=OPEN_SHELL('',(#54));
65#56=SHELL_BASED_SURFACE_MODEL('',(#55));
66#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
67#9051=PRODUCT('Gp178','Gp178','',(#9050));
68#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
69#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
70#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
71#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
72#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
73#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
74#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
75#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
76#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
77#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#56),#9060);
78#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
79ENDSEC;
80END-ISO-10303-21;