Tsh050 — Edges on shared face boundary not deduplicated after merge

§12.3a shells/orientation

P1 — silent data loss

topology

Sources

Description

After two same-domain faces are merged, the new face's wire contains every edge from both inputs, including edges that were on the shared boundary between the two faces. Those interior edges should be removed (they are no longer on the merged face's boundary) but instead appear as zero-area dangling segments.

Reproducer recipe

Two coplanar quad faces sharing one edge. After merging, expected wire is the 6-edge boundary of the union; defective wire is the 8-edge boundary plus the shared edge listed twice with opposite orientations.

Expected kernel behavior

Heal and accept: coerce / merge so edges shared between merged faces are removed from the resulting wire; only true boundary edges of the union are retained.

Notes

**See also**: Tsh046, Tsh049. Provenance tier: runtime-only; bytes alone cannot demonstrate this defect; the static fixture encodes only the merge precondition (two coplanar faces sharing an edge). The defective wire arises only after the kernel performs the merge operation. A behavioral test against the merge implementation is the appropriate venue. Synonyms: "shared edges not removed after face merge", "interior edge listed twice in merged wire", "dangling zero-area edge after unification", "merged face wire still has internal partitions", "edges between merged faces not deduped".

Expected validation

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

Provenance tier

runtime-only — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Cross-references

Tsh046, Tsh049

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh050: OPEN_SHELL with 2 coplanar ADVANCED_FACEs on the same PLANE (z=0, normal +Z); Face A is unit square (0,0)→(1,1), Face B is unit square (1,0)→(2,1); they share one EDGE_CURVE at x=1, y=0→1 with opposite ORIENTED_EDGE senses; shared edge IS wired into both face EDGE_LOOPs; after merge, shared edge must be removed from wire; defective merge lists shared edge twice as dangling zero-area segment; shared boundary edge IS the mechanism in shell/face topology */
3HEADER;
4FILE_DESCRIPTION(('Tsh050'),'2;1');
5FILE_NAME('Tsh050.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=CARTESIAN_POINT('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(1.0,1.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,1.0,0.0));
14#5=CARTESIAN_POINT('',(2.0,0.0,0.0));
15#6=CARTESIAN_POINT('',(2.0,1.0,0.0));
16#7=VERTEX_POINT('',#1);
17#8=VERTEX_POINT('',#2);
18#9=VERTEX_POINT('',#3);
19#10=VERTEX_POINT('',#4);
20#11=VERTEX_POINT('',#5);
21#12=VERTEX_POINT('',#6);
22#13=DIRECTION('',(1.0,0.0,0.0));
23#14=VECTOR('',#13,1.0);
24#15=LINE('',#1,#14);
25#16=EDGE_CURVE('',#7,#8,#15,.T.);
26#17=DIRECTION('',(0.0,1.0,0.0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#2,#18);
29#20=EDGE_CURVE('',#8,#9,#19,.T.);
30#21=DIRECTION('',(-1.0,0.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#3,#22);
33#24=EDGE_CURVE('',#9,#10,#23,.T.);
34#25=DIRECTION('',(0.0,-1.0,0.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#4,#26);
37#28=EDGE_CURVE('',#10,#7,#27,.T.);
38#29=DIRECTION('',(0.0,0.0,1.0));
39#30=DIRECTION('',(1.0,0.0,0.0));
40#31=CARTESIAN_POINT('',(0.0,0.0,0.0));
41#32=AXIS2_PLACEMENT_3D('',#31,#29,#30);
42#33=PLANE('',#32);
43#34=ORIENTED_EDGE('',$,$,#16,.T.);
44#35=ORIENTED_EDGE('',$,$,#20,.T.);
45#36=ORIENTED_EDGE('',$,$,#24,.T.);
46#37=ORIENTED_EDGE('',$,$,#28,.T.);
47#38=EDGE_LOOP('',(#34,#35,#36,#37));
48#39=FACE_OUTER_BOUND('',#38,.T.);
49#40=ADVANCED_FACE('',(#39),#33,.T.);
50#41=DIRECTION('',(1.0,0.0,0.0));
51#42=VECTOR('',#41,1.0);
52#43=LINE('',#2,#42);
53#44=EDGE_CURVE('',#8,#11,#43,.T.);
54#45=DIRECTION('',(0.0,1.0,0.0));
55#46=VECTOR('',#45,1.0);
56#47=LINE('',#5,#46);
57#48=EDGE_CURVE('',#11,#12,#47,.T.);
58#49=DIRECTION('',(-1.0,0.0,0.0));
59#50=VECTOR('',#49,1.0);
60#51=LINE('',#6,#50);
61#52=EDGE_CURVE('',#12,#9,#51,.T.);
62#53=ORIENTED_EDGE('',$,$,#44,.T.);
63#54=ORIENTED_EDGE('',$,$,#48,.T.);
64#55=ORIENTED_EDGE('',$,$,#52,.T.);
65#56=ORIENTED_EDGE('',$,$,#20,.F.);
66#57=EDGE_LOOP('',(#53,#54,#55,#56));
67#58=FACE_OUTER_BOUND('',#57,.T.);
68#59=ADVANCED_FACE('',(#58),#33,.T.);
69#60=OPEN_SHELL('',(#40,#59));
70#61=SHELL_BASED_SURFACE_MODEL('',(#60));
71#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
72#9051=PRODUCT('Tsh050','Tsh050','',(#9050));
73#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
74#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
75#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
76#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
77#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
78#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
79#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
80#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
81#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
82#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#61),#9060);
83#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
84ENDSEC;
85END-ISO-10303-21;