Gp186 — Two pcurve-bearing edges actually merged by sewing, reversed contributor with a 4x parameter-domain mismatch (`sew-pcurve-domain-reconciliation`, PARTIAL)

§12.2a pcurve (sub-class: sewing-time pcurve domain reconciliation — `sew-pcurve-domain-reconciliation`)

P3 — cosmetic / metadata-only

geometry

Sources

Sender

deduced — OCCT uncovered-class sweep, work packet D2.

Description

Two independent, unstitched coplanar `PLANE` rectangles (Face A upper, Face B lower) share a geometrically coincident but topologically distinct boundary segment. Face A's bottom edge (`A=(0,0,0)` to `B=(1,0,0)`) carries a 3D `LINE` of magnitude 1 (parameter domain `[0,1]`) and a matching-speed pcurve. Face B's top edge (`B'=(1,0,0)` to `A'=(0,0,0)`, distinct `VERTEX_POINT` entities from A's, at the same coordinates) is the SAME physical segment traversed in the OPPOSITE 3D direction, parametrized 4x slower (vector magnitude 0.25, domain `[0,4]`), with its own matching-speed pcurve. Neither face references the other's edge or vertex entities — a genuinely unstitched two-body input, not Gp050/Gp052's single-edge the edge-healing stage probes.

Reproducer recipe

Two coplanar `PLANE` rectangles sharing one physical boundary segment via two independent `EDGE_CURVE`s: one traversed forward at unit speed (domain `[0,1]`), the other traversed reversed at quarter speed (domain `[0,4]`), each with its own matching pcurve; wrapped in one `OPEN_SHELL` containing both `ADVANCED_FACE`s (never explicitly sewn in the Part-21 data itself).

Expected kernel behavior

a sewing pass (the sewing stage) recognizes the two edges as geometrically coincident within tolerance, reverses and rescales the non-reference (Face B) contributor's pcurve onto the reference edge's shared domain, and merges them into one topologically-shared edge.

Notes

**See also**: Gp050, Gp052 (single-edge the edge-healing stage.same-parameter repair probes — not an actual two-edge merge; this fixture is the correction). **Empirical finding (live-verified, decisive)**: this fixture is NOT stitched by the default the reader (which does not invoke sewing) — the raw translated shape is a compound of the 2 independent `ADVANCED_FACE`s (`n_faces_total=2`, `n_edges_total=8`, no shared edges), exactly as authored. To verify the class's actual claim (that sewing's own merge-time pcurve reconciliation is what this input demands), a standalone the sewing stage(1e-2)` pass was run over the two translated faces (not part of the standard tier-3 harness — a supplementary live check specific to this class). Result, read via `TopExp.MapShapesAndAncestors_s`: the shape drops from 8 distinct boundary edges to 7, with exactly ONE edge shared by both faces — the two independently-parametrized, reversed, 4x-domain-mismatched edges were genuinely merged. On the merged edge: 3D range `(0.0, 1.0)` (Face A's reference domain won), `SameRange=True`, `SameParameter=True`; Face A's pcurve is an unchanged `Geom2d_Line` over `[0,1]`; Face B's pcurve is now a `Geom2d_TrimmedCurve` over `[0,1]` — its original `[0,4]`, reversed-direction curve was reversed and rescaled onto the shared domain, exactly the `Reverse()`+`ReversedParameter`+`SameRange`-rescale codepath this class targets. Both faces retain valid, non-null pcurves post-merge (the `c2d2.IsNull()` skip-on-failure path was NOT taken).

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gp050, Gp052

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp186: Two independent, unstitched coplanar PLANE rectangles (Face A upper, Face B lower) sharing a geometrically coincident but topologically distinct boundary segment: Face A's bottom edge A->B (3D LINE magnitude 1, domain [0,1], matching-speed pcurve) vs Face B's top edge B'->A' (SAME physical segment, opposite 3D direction, vector magnitude 0.25, domain [0,4], matching-speed own pcurve) -- reversed-orientation AND 4x-domain-mismatched contributor requiring BRepBuilderAPI_Sewing's Reverse()+ReversedParameter+SameRange rescale to merge into one edge */
3HEADER;
4FILE_DESCRIPTION(('Gp186'),'2;1');
5FILE_NAME('Gp186.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=PLANE('',#4);
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('',(1.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(1.0,1.0,0.0));
19#10=CARTESIAN_POINT('',(0.0,1.0,0.0));
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=VERTEX_POINT('',#9);
23#14=VERTEX_POINT('',#10);
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#7,#16);
27#18=CARTESIAN_POINT('',(0.0,0.0));
28#19=DIRECTION('',(1.0,0.0));
29#20=VECTOR('',#19,1.0);
30#21=LINE('',#18,#20);
31#22=DEFINITIONAL_REPRESENTATION('faceA_bottom_def',(#21),#6);
32#23=PCURVE('faceA_bottom_pc',#5,#22);
33#24=SURFACE_CURVE('faceA_bottom_sc',#17,(#23),.PCURVE_S1.);
34#25=EDGE_CURVE('faceA_bottom',#11,#12,#24,.T.);
35#26=DIRECTION('',(0.0,1.0,0.0));
36#27=VECTOR('',#26,1.0);
37#28=LINE('',#8,#27);
38#29=CARTESIAN_POINT('',(1.0,0.0));
39#30=DIRECTION('',(0.0,1.0));
40#31=VECTOR('',#30,1.0);
41#32=LINE('',#29,#31);
42#33=DEFINITIONAL_REPRESENTATION('faceA_right_def',(#32),#6);
43#34=PCURVE('faceA_right_pc',#5,#33);
44#35=SURFACE_CURVE('faceA_right_sc',#28,(#34),.PCURVE_S1.);
45#36=EDGE_CURVE('faceA_right',#12,#13,#35,.T.);
46#37=DIRECTION('',(1.0,0.0,0.0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#10,#38);
49#40=CARTESIAN_POINT('',(0.0,1.0));
50#41=DIRECTION('',(1.0,0.0));
51#42=VECTOR('',#41,1.0);
52#43=LINE('',#40,#42);
53#44=DEFINITIONAL_REPRESENTATION('faceA_top_def',(#43),#6);
54#45=PCURVE('faceA_top_pc',#5,#44);
55#46=SURFACE_CURVE('faceA_top_sc',#39,(#45),.PCURVE_S1.);
56#47=EDGE_CURVE('faceA_top',#14,#13,#46,.T.);
57#48=DIRECTION('',(0.0,-1.0,0.0));
58#49=VECTOR('',#48,1.0);
59#50=LINE('',#10,#49);
60#51=CARTESIAN_POINT('',(0.0,1.0));
61#52=DIRECTION('',(0.0,-1.0));
62#53=VECTOR('',#52,1.0);
63#54=LINE('',#51,#53);
64#55=DEFINITIONAL_REPRESENTATION('faceA_left_def',(#54),#6);
65#56=PCURVE('faceA_left_pc',#5,#55);
66#57=SURFACE_CURVE('faceA_left_sc',#50,(#56),.PCURVE_S1.);
67#58=EDGE_CURVE('faceA_left',#14,#11,#57,.T.);
68#59=ORIENTED_EDGE('',$,$,#25,.T.);
69#60=ORIENTED_EDGE('',$,$,#36,.T.);
70#61=ORIENTED_EDGE('',$,$,#47,.F.);
71#62=ORIENTED_EDGE('',$,$,#58,.T.);
72#63=EDGE_LOOP('',(#59,#60,#61,#62));
73#64=FACE_OUTER_BOUND('',#63,.T.);
74#65=ADVANCED_FACE('',(#64),#5,.T.);
75#66=CARTESIAN_POINT('',(1.0,0.0,0.0));
76#67=CARTESIAN_POINT('',(0.0,0.0,0.0));
77#68=CARTESIAN_POINT('',(0.0,-1.0,0.0));
78#69=CARTESIAN_POINT('',(1.0,-1.0,0.0));
79#70=VERTEX_POINT('',#66);
80#71=VERTEX_POINT('',#67);
81#72=VERTEX_POINT('',#68);
82#73=VERTEX_POINT('',#69);
83#74=DIRECTION('',(-1.0,0.0,0.0));
84#75=VECTOR('',#74,0.25);
85#76=LINE('',#66,#75);
86#77=CARTESIAN_POINT('',(1.0,0.0));
87#78=DIRECTION('',(-1.0,0.0));
88#79=VECTOR('',#78,0.25);
89#80=LINE('',#77,#79);
90#81=DEFINITIONAL_REPRESENTATION('faceB_top_def',(#80),#6);
91#82=PCURVE('faceB_top_pc',#5,#81);
92#83=SURFACE_CURVE('faceB_top_sc',#76,(#82),.PCURVE_S1.);
93#84=EDGE_CURVE('faceB_top',#70,#71,#83,.T.);
94#85=DIRECTION('',(0.0,-1.0,0.0));
95#86=VECTOR('',#85,1.0);
96#87=LINE('',#67,#86);
97#88=CARTESIAN_POINT('',(0.0,0.0));
98#89=DIRECTION('',(0.0,-1.0));
99#90=VECTOR('',#89,1.0);
100#91=LINE('',#88,#90);
101#92=DEFINITIONAL_REPRESENTATION('faceB_left_def',(#91),#6);
102#93=PCURVE('faceB_left_pc',#5,#92);
103#94=SURFACE_CURVE('faceB_left_sc',#87,(#93),.PCURVE_S1.);
104#95=EDGE_CURVE('faceB_left',#71,#72,#94,.T.);
105#96=DIRECTION('',(1.0,0.0,0.0));
106#97=VECTOR('',#96,1.0);
107#98=LINE('',#68,#97);
108#99=CARTESIAN_POINT('',(0.0,-1.0));
109#100=DIRECTION('',(1.0,0.0));
110#101=VECTOR('',#100,1.0);
111#102=LINE('',#99,#101);
112#103=DEFINITIONAL_REPRESENTATION('faceB_bottom_def',(#102),#6);
113#104=PCURVE('faceB_bottom_pc',#5,#103);
114#105=SURFACE_CURVE('faceB_bottom_sc',#98,(#104),.PCURVE_S1.);
115#106=EDGE_CURVE('faceB_bottom',#72,#73,#105,.T.);
116#107=DIRECTION('',(0.0,1.0,0.0));
117#108=VECTOR('',#107,1.0);
118#109=LINE('',#69,#108);
119#110=CARTESIAN_POINT('',(1.0,-1.0));
120#111=DIRECTION('',(0.0,1.0));
121#112=VECTOR('',#111,1.0);
122#113=LINE('',#110,#112);
123#114=DEFINITIONAL_REPRESENTATION('faceB_right_def',(#113),#6);
124#115=PCURVE('faceB_right_pc',#5,#114);
125#116=SURFACE_CURVE('faceB_right_sc',#109,(#115),.PCURVE_S1.);
126#117=EDGE_CURVE('faceB_right',#73,#70,#116,.T.);
127#118=ORIENTED_EDGE('',$,$,#84,.T.);
128#119=ORIENTED_EDGE('',$,$,#95,.T.);
129#120=ORIENTED_EDGE('',$,$,#106,.T.);
130#121=ORIENTED_EDGE('',$,$,#117,.T.);
131#122=EDGE_LOOP('',(#118,#119,#120,#121));
132#123=FACE_OUTER_BOUND('',#122,.T.);
133#124=ADVANCED_FACE('',(#123),#5,.T.);
134#125=OPEN_SHELL('',(#65,#124));
135#126=SHELL_BASED_SURFACE_MODEL('',(#125));
136#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
137#9051=PRODUCT('Gp186','Gp186','',(#9050));
138#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
139#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
140#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
141#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
142#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
143#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
144#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
145#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
146#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
147#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#126),#9060);
148#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
149ENDSEC;
150END-ISO-10303-21;