Twi302 — Small SEAM edge on a periodic face, adjacent to another seam segment: seam-with-seam merge

§12.3b wire-loop (sub-class: `tkshh-wire-small-edge`, PARTIAL, missing subvariant "small seam edge on a periodic face, seam-with-seam merge only")

P3 — cosmetic / metadata-only

topology

Sources

Description

A full-360 `CYLINDRICAL_SURFACE` face whose U=0 boundary — normally a single seam `EDGE_CURVE` spanning the whole height (Gp013's pattern) — is split into TWO consecutive seam segments: `seam_lower_segment` (real length ~2.0) and `seam_upper_small_segment` (length 1e-6, below the harness's live-tested survival-margin threshold). Each is an ordinary `LINE`-geometry `EDGE_CURVE` referenced TWICE in the one `FACE_OUTER_BOUND` `EDGE_LOOP` (formal seam per `IsSeamCurve`'s twice-in-one-wire branch); `seam_upper_small_segment`'s smallness is adjacent, on both sides of the wire traversal, to `seam_lower_segment`'s two seam references — not to any ordinary edge — isolating the seam-with-seam merge path.

Reproducer recipe

`EDGE_LOOP` of 6 `ORIENTED_EDGE`s: `bot_arc(v_b->v_b)` -> `seam_lower fwd(v_b->v_mid)` -> `seam_upper fwd(v_mid->v_t, SMALL)` -> `top_arc(v_t->v_t, reversed)` -> `seam_upper rev(v_t->v_mid)` -> `seam_lower rev(v_mid->v_b)`.

Expected kernel behavior

replace the two seam segments with one, re-deriving the surviving edge's pcurve to span the full combined parameter range, rather than merging a small seam into an ordinary neighbor.

Notes

**See also**: Twi013, N010, N014, Twi138, Twi237, Twi184 (all merge a small edge into an ordinary neighbor, not another seam). Live-verified (this worktree, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, face is a cylinder, `n_edges_total=6`, `n_vertices_total=12`, `brepcheck.valid=True`. Below ~1e-7 the double-seam wire is rejected outright (whole wire dropped, face left with 0 edges/natural bound) rather than merged — a platform-risk boundary the harness live-tested and avoided by using `1e-6`, matching this corpus's convention of staying safely clear of borderline OCCTAutoFix geometry (see `reference_gmsh_platform_divergence`). Synonyms: "seam merges into adjacent seam", "two consecutive seam segments one small", "seam-with-seam merge path", "small seam edge periodic surface", "MergeSmallEdges seam protection". Provenance tier: bytes-sufficient.

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Byte assertions

Tier-3 assertions

Cross-references

Twi013, N010, N014, Twi138, Twi237, Twi184

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi302: OPEN_SHELL with one ADVANCED_FACE on a full-360 CYLINDRICAL_SURFACE (radius 1, axis +Z, height 2); the U=0 boundary is split into TWO consecutive plain-LINE seam segments instead of Gp013's single one: seam_lower_segment (z:0->1.999999, real length) and seam_upper_small_segment (z:1.999999->2, length 1e-6); each is an ordinary EDGE_CURVE (pcurve auto-derived) referenced TWICE in the FACE_OUTER_BOUND EDGE_LOOP (formal seam per IsSeamCurve's twice-in-one-wire branch); seam_upper_small_segment's smallness is adjacent ON BOTH SIDES to seam_lower_segment's two seam references (not to any ordinary edge) -- isolates the seam-with-seam merge path in ShapeFix_Wireframe::MergeSmallEdges; EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi302'),'2;1');
5FILE_NAME('Twi302.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,1.0000000000);
15#6=CARTESIAN_POINT('',(1.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(1.0,0.0,1.999999));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(1.0,0.0,2.0));
20#11=VERTEX_POINT('',#10);
21#12=DIRECTION('',(0.0,0.0,1.0));
22#13=VECTOR('',#12,1.999999);
23#14=CARTESIAN_POINT('',(1.0,0.0,0.0));
24#15=LINE('seam_lower_segment',#14,#13);
25#16=EDGE_CURVE('seam_lower_segment',#7,#9,#15,.T.);
26#17=DIRECTION('',(0.0,0.0,1.0));
27#18=VECTOR('',#17,9.99999999918E-07);
28#19=CARTESIAN_POINT('',(1.0,0.0,1.999999));
29#20=LINE('seam_upper_small_segment',#19,#18);
30#21=EDGE_CURVE('seam_upper_small_segment',#9,#11,#20,.T.);
31#22=CARTESIAN_POINT('',(0.0,0.0,0.0));
32#23=AXIS2_PLACEMENT_3D('',#22,#2,#3);
33#24=CIRCLE('',#23,1.0000000000);
34#25=EDGE_CURVE('',#7,#7,#24,.T.);
35#26=CARTESIAN_POINT('',(0.0,0.0,2.0));
36#27=AXIS2_PLACEMENT_3D('',#26,#2,#3);
37#28=CIRCLE('',#27,1.0000000000);
38#29=EDGE_CURVE('',#11,#11,#28,.T.);
39#30=ORIENTED_EDGE('',*,*,#25,.T.);
40#31=ORIENTED_EDGE('',*,*,#16,.T.);
41#32=ORIENTED_EDGE('',*,*,#21,.T.);
42#33=ORIENTED_EDGE('',*,*,#29,.F.);
43#34=ORIENTED_EDGE('',*,*,#21,.F.);
44#35=ORIENTED_EDGE('',*,*,#16,.F.);
45#36=EDGE_LOOP('',(#30,#31,#32,#33,#34,#35));
46#37=FACE_OUTER_BOUND('',#36,.T.);
47#38=ADVANCED_FACE('',(#37),#5,.T.);
48#39=OPEN_SHELL('',(#38));
49#40=SHELL_BASED_SURFACE_MODEL('',(#39));
50#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
51#9051=PRODUCT('Twi302','Twi302','',(#9050));
52#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
53#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
54#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
55#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
56#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
57#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
58#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
59#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
60#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
61#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#40),#9060);
62#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
63ENDSEC;
64END-ISO-10303-21;