Hea015 — Shape healing regression: shared EDGE_CURVE between two ADVANCED_FACEs on same PLANE has duplicate PCURVE_S1_AND_S2 entries (identical UV start and direction)

§12.3c faces/sewing

topology

Sources

Description

A specific shape-healing internal change (gluing edges with pcurves) introduced regression on a class of input shapes; shapes with edges that have pcurves attached to faces sharing an underlying surface. Post-heal results are valid topology but with wrong pcurve parameterisation. Typical input fixture: two ADVANCED_FACEs on the same PLANE share one EDGE_CURVE whose SURFACE_CURVE has two PCURVE entries with `master_representation = .PCURVE_S1_AND_S2.` but both pcurves are duplicates (identical UV start point, identical direction) instead of representing the two opposite sides.

Reproducer recipe

Two ADVANCED_FACEs on the same `PLANE` sharing one EDGE_CURVE that has a SURFACE_CURVE with two duplicate PCURVE entries (.PCURVE_S1_AND_S2.). After glue-edges-with-pcurves, the edge has only one pcurve and references the wrong face's parameter frame.

Expected kernel behavior

Heal and accept: glue operations preserve all pcurves attached to glued edges; pcurve-to-face binding is preserved. Must not silently drop pcurves.

Notes

**See also**: Tfa064. Synonyms: "shared edge has duplicate pcurves", "EDGE_CURVE has same pcurve twice", "PCURVE_S1_AND_S2 entries identical", "shape healing regression on glued edges duplicates pcurves".

Expected validation

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

Closure intent

solid (defect kind: unstitched_seam) — authored as a closed solid; openness is the defect — heal it shut.

Tier-3 assertions

Cross-references

Tfa064

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Hea015: Two ADVANCED_FACEs (A: (0,0)-(1,1), B: (1,0)-(2,1)) on same PLANE share edge E (x=1.0, from V_S0 to V_S1); shared edge has SURFACE_CURVE with TWO identical PCURVE entries (.PCURVE_S1_AND_S2., both at uv_start=(1.0,0.0) direction (0,1)); glue-edges-with-pcurves drops one pcurve, leaving wrong face binding; heal regression: pcurve-to-face binding must be preserved */
3HEADER;
4FILE_DESCRIPTION(('Hea015'),'2;1');
5FILE_NAME('Hea015.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('shared_plane_repr',#1,#2,#3);
14#5=PLANE('shared_plane',#4);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(1.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(2.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(2.0,1.0,0.0));
19#10=CARTESIAN_POINT('',(1.0,1.0,0.0));
20#11=CARTESIAN_POINT('',(0.0,1.0,0.0));
21#12=VERTEX_POINT('V_A0',#6);
22#13=VERTEX_POINT('V_S0',#7);
23#14=VERTEX_POINT('V_B0',#8);
24#15=VERTEX_POINT('V_B1',#9);
25#16=VERTEX_POINT('V_S1',#10);
26#17=VERTEX_POINT('V_A1',#11);
27#18=DIRECTION('',(1.0,0.0,0.0));
28#19=VECTOR('',#18,1.0);
29#20=LINE('',#6,#19);
30#21=EDGE_CURVE('A_bottom',#12,#13,#20,.T.);
31#22=DIRECTION('',(-1.0,0.0,0.0));
32#23=VECTOR('',#22,1.0);
33#24=LINE('',#10,#23);
34#25=EDGE_CURVE('A_top',#16,#17,#24,.T.);
35#26=DIRECTION('',(0.0,-1.0,0.0));
36#27=VECTOR('',#26,1.0);
37#28=LINE('',#11,#27);
38#29=EDGE_CURVE('A_left',#17,#12,#28,.T.);
39#30=DIRECTION('',(1.0,0.0,0.0));
40#31=VECTOR('',#30,1.0);
41#32=LINE('',#7,#31);
42#33=EDGE_CURVE('B_bottom',#13,#14,#32,.T.);
43#34=DIRECTION('',(0.0,1.0,0.0));
44#35=VECTOR('',#34,1.0);
45#36=LINE('',#8,#35);
46#37=EDGE_CURVE('B_right',#14,#15,#36,.T.);
47#38=DIRECTION('',(-1.0,0.0,0.0));
48#39=VECTOR('',#38,1.0);
49#40=LINE('',#9,#39);
50#41=EDGE_CURVE('B_top',#15,#16,#40,.T.);
51#42=DIRECTION('',(0.0,1.0,0.0));
52#43=VECTOR('',#42,1.0);
53#44=LINE('shared_3d',#7,#43);
54#45=CARTESIAN_POINT('uv_pcA_start',(1.0,0.0));
55#46=DIRECTION('',(0.0,1.0));
56#47=VECTOR('',#46,1.0);
57#48=LINE('pcA_uv',#45,#47);
58#49=DEFINITIONAL_REPRESENTATION('A_repr',(#48),#4);
59#50=PCURVE('pcurve_A_side',#5,#49);
60#51=CARTESIAN_POINT('uv_pcB_start',(1.0,0.0));
61#52=DIRECTION('',(0.0,1.0));
62#53=VECTOR('',#52,1.0);
63#54=LINE('pcB_uv',#51,#53);
64#55=DEFINITIONAL_REPRESENTATION('B_repr',(#54),#4);
65#56=PCURVE('pcurve_B_side',#5,#55);
66#57=SURFACE_CURVE('shared_edge_surface',#44,(#50,#56),.PCURVE_S1_AND_S2.);
67#58=EDGE_CURVE('shared_E_with_two_pcurves',#13,#16,#57,.T.);
68#59=ORIENTED_EDGE('',$,$,#21,.T.);
69#60=ORIENTED_EDGE('',$,$,#58,.T.);
70#61=ORIENTED_EDGE('',$,$,#25,.T.);
71#62=ORIENTED_EDGE('',$,$,#29,.T.);
72#63=EDGE_LOOP('',(#59,#60,#61,#62));
73#64=FACE_OUTER_BOUND('',#63,.T.);
74#65=ADVANCED_FACE('faceA_on_shared_plane',(#64),#5,.T.);
75#66=ORIENTED_EDGE('',$,$,#33,.T.);
76#67=ORIENTED_EDGE('',$,$,#37,.T.);
77#68=ORIENTED_EDGE('',$,$,#41,.T.);
78#69=ORIENTED_EDGE('',$,$,#58,.F.);
79#70=EDGE_LOOP('',(#66,#67,#68,#69));
80#71=FACE_OUTER_BOUND('',#70,.T.);
81#72=ADVANCED_FACE('faceB_on_shared_plane',(#71),#5,.T.);
82#73=OPEN_SHELL('two_faces_share_edge_with_two_pcurves',(#65,#72));
83#74=SHELL_BASED_SURFACE_MODEL('',(#73));
84#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
85#9051=PRODUCT('Hea015','Hea015','',(#9050));
86#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
87#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
88#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
89#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
90#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
91#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
92#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
93#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
94#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
95#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060);
96#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
97ENDSEC;
98END-ISO-10303-21;