Tfa018 — Same-domain face merge across periodic seam: shared `EDGE_CURVE` reused with `.T.`/`.F.` on both halves (missed-seam reconstruction)

§12.3c face-sliver-sewing

P1 — silent data loss

crash topology

Sources

Description

When merging same-domain faces across a periodic seam (e.g. a cylinder split into two halves A and B), the seam-reconstruction path that emits the new edge crashes in debug mode, returns invalid geometry in release mode, or leaves the union incomplete. Common signature: the two seam `EDGE_CURVE`s are each referenced by both halves' `EDGE_LOOP`s as `ORIENTED_EDGE`s with opposing `.T.`/`.F.` senses; each seam edge appears twice with the confusing same-edge-different-sense pattern. The kernel needed to synthesise the seam edge from one of the input pcurves but failed to copy it correctly.

Reproducer recipe

Compound of co-cylindrical faces with implicit seam between them.

Expected kernel behavior

copy an existing pcurve when reconstructing the seam edge; correctly detect periodicity; for closed-but-not-periodic surfaces, modify the underlying surface to be periodic before merging, or refuse the merge.

Notes

**See also**: Tfa016. Synonyms: "seam edge reused with both senses", "same edge appears twice in loop with .T. and .F.", "missed-seam reconstruction across cylinder halves", "merged cylinder halves crash on seam edge", "edge used in both orientations on periodic merge".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Tfa016

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tfa018: GEOMETRIC_CURVE_SET containing two co-cylindrical ADVANCED_FACEs; seam EDGE_CURVE at x=-10 (the 180-degree seam line) is referenced by both halves' EDGE_LOOPs: face A uses it as .T. and face B uses it as .F.; same-edge-different-sense pattern triggers missed-seam reconstruction; kernel must copy a pcurve to reconstruct the seam edge correctly; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; no orphaned entities */
3HEADER;
4FILE_DESCRIPTION(('Tfa018'),'2;1');
5FILE_NAME('Tfa018.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=CYLINDRICAL_SURFACE('',#4,10.0);
15#6=CARTESIAN_POINT('',(10.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(10.0,0.0,5.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(-10.0,0.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(-10.0,0.0,5.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(-10.0,0.0,0.0));
24#15=DIRECTION('',(0.0,0.0,1.0));
25#16=VECTOR('',#15,5.0);
26#17=LINE('',#14,#16);
27#18=EDGE_CURVE('rear_seam',#11,#13,#17,.T.);
28#19=CARTESIAN_POINT('',(10.0,0.0,0.0));
29#20=DIRECTION('',(0.0,0.0,1.0));
30#21=VECTOR('',#20,5.0);
31#22=LINE('',#19,#21);
32#23=EDGE_CURVE('front_seam',#7,#9,#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('',#27,10.0);
38#29=EDGE_CURVE('bot_arc_a',#7,#11,#28,.T.);
39#30=DIRECTION('',(-1.0,0.0,0.0));
40#31=AXIS2_PLACEMENT_3D('',#24,#25,#30);
41#32=CIRCLE('',#31,10.0);
42#33=EDGE_CURVE('bot_arc_b',#11,#7,#32,.T.);
43#34=CARTESIAN_POINT('',(0.0,0.0,5.0));
44#35=DIRECTION('',(0.0,0.0,1.0));
45#36=DIRECTION('',(1.0,0.0,0.0));
46#37=AXIS2_PLACEMENT_3D('',#34,#35,#36);
47#38=CIRCLE('',#37,10.0);
48#39=EDGE_CURVE('top_arc_a',#9,#13,#38,.T.);
49#40=DIRECTION('',(-1.0,0.0,0.0));
50#41=AXIS2_PLACEMENT_3D('',#34,#35,#40);
51#42=CIRCLE('',#41,10.0);
52#43=EDGE_CURVE('top_arc_b',#13,#9,#42,.T.);
53#44=ORIENTED_EDGE('',*,*,#29,.T.);
54#45=ORIENTED_EDGE('',*,*,#18,.T.);
55#46=ORIENTED_EDGE('',*,*,#39,.F.);
56#47=ORIENTED_EDGE('',*,*,#23,.F.);
57#48=EDGE_LOOP('loop_a',(#44,#45,#46,#47));
58#49=FACE_OUTER_BOUND('',#48,.T.);
59#50=ADVANCED_FACE('face_a',(#49),#5,.T.);
60#51=ORIENTED_EDGE('',*,*,#33,.T.);
61#52=ORIENTED_EDGE('',*,*,#23,.T.);
62#53=ORIENTED_EDGE('',*,*,#43,.T.);
63#54=ORIENTED_EDGE('',*,*,#18,.F.);
64#55=EDGE_LOOP('loop_b',(#51,#52,#53,#54));
65#56=FACE_OUTER_BOUND('',#55,.T.);
66#57=ADVANCED_FACE('face_b',(#56),#5,.T.);
67#58=GEOMETRIC_CURVE_SET('',(#50,#57));
68#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
69#9051=PRODUCT('Tfa018','Tfa018','',(#9050));
70#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
71#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
72#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
73#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
74#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
75#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
76#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
77#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
78#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
79#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#58),#9060);
80#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
81ENDSEC;
82END-ISO-10303-21;