Twi303 — Small edge at a sharp corner (non-collinear neighbors on both sides): drop-mode-only merge

§12.3b wire-loop (sub-class: `tkshh-wire-small-edge`, PARTIAL, missing subvariant "small edge that cannot be merged and is dropped (drop mode), with connectivity re-check")

P3 — cosmetic / metadata-only

topology

Sources

Description

A pentagon-ish planar face on a `PLANE`. Four of the five wire edges form a near-square (bottom, right, top, left); the fifth is a tiny DIAGONAL notch edge (`sharp_corner_notch_edge`, length ~1.414e-6) inserted at the top-right corner between the near-vertical right edge and the near-horizontal top edge — emphatically NOT collinear with either neighbor (their tangent directions differ from the notch's by ~45° on each side, vs. the ~180° collinear continuation Twi013's sliver has with its straight run). A healer that tries to "extend" either straight neighbor to absorb the diagonal notch would have to change that neighbor's curve direction, violating the angle-limit merge-eligibility guard — forcing drop mode.

Reproducer recipe

`EDGE_LOOP` of 5 edges: `bottom(A->B)` -> `right(B->C)` -> `sharp_corner_notch_edge(C->D, tiny diagonal)` -> `top(D->E)` -> `left(E->A)`; `A=(0,0,0) B=(1,0,0) C=(1,1-1e-6,0) D=(1-1e-6,1,0) E=(0,1,0)`.

Expected kernel behavior

remove the small edge outright and reconnect its two neighbors directly to each other, adjusting the shared vertex (a connectivity re-check), rather than extending either curve.

Notes

**See also**: Twi013, N010, N014, Twi138, Twi237, Twi184 (whose sliver always sits collinear with, or between collinear-compatible, straight neighbors and is mergeable by simple extension). Live-verified (this worktree, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, face is a plane, `n_edges_total=5`, `n_vertices_total=10`, `brepcheck.valid=True`. Synonyms: "small edge at sharp corner", "non-collinear neighbors merge guard", "drop mode small edge removal", "connectivity re-check after drop", "angle limit merge eligibility guard". Provenance tier: bytes-sufficient.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(11) 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/* Twi303: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references a 5-edge EDGE_LOOP: bottom(A->B), right(B->C, near-vertical), sharp_corner_notch_edge(C->D, tiny DIAGONAL, length ~1.414e-6, NOT collinear with either neighbor), top(D->E, near-horizontal), left(E->A); A=(0,0,0) B=(1,0,0) C=(1,1-1e-6,0) D=(1-1e-6,1,0) E=(0,1,0); the notch's non-collinear geometry on both sides forces ShapeFix_Wireframe::MergeSmallEdges' drop-mode branch (angle-limit merge guard rejects extension into either neighbor) rather than a simple collinear-extension merge; EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi303'),'2;1');
5FILE_NAME('Twi303.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(1.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(1.0,0.999999,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(0.999999,1.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,1.0,0.0));
24#15=VERTEX_POINT('',#14);
25#16=DIRECTION('',(1.0,0.0,0.0));
26#17=VECTOR('',#16,1.0);
27#18=CARTESIAN_POINT('',(0.0,0.0,0.0));
28#19=LINE('bottom_edge',#18,#17);
29#20=EDGE_CURVE('bottom_edge',#7,#9,#19,.T.);
30#21=DIRECTION('',(0.0,1.0,0.0));
31#22=VECTOR('',#21,0.999999);
32#23=CARTESIAN_POINT('',(1.0,0.0,0.0));
33#24=LINE('right_edge',#23,#22);
34#25=EDGE_CURVE('right_edge',#9,#11,#24,.T.);
35#26=DIRECTION('',(-0.707106781187,0.707106781187,0.0));
36#27=VECTOR('',#26,1.41421356241E-06);
37#28=CARTESIAN_POINT('',(1.0,0.999999,0.0));
38#29=LINE('sharp_corner_notch_edge',#28,#27);
39#30=EDGE_CURVE('sharp_corner_notch_edge',#11,#13,#29,.T.);
40#31=DIRECTION('',(-1.0,0.0,0.0));
41#32=VECTOR('',#31,0.999999);
42#33=CARTESIAN_POINT('',(0.999999,1.0,0.0));
43#34=LINE('top_edge',#33,#32);
44#35=EDGE_CURVE('top_edge',#13,#15,#34,.T.);
45#36=DIRECTION('',(0.0,-1.0,0.0));
46#37=VECTOR('',#36,1.0);
47#38=CARTESIAN_POINT('',(0.0,1.0,0.0));
48#39=LINE('left_edge',#38,#37);
49#40=EDGE_CURVE('left_edge',#15,#7,#39,.T.);
50#41=ORIENTED_EDGE('',$,$,#20,.T.);
51#42=ORIENTED_EDGE('',$,$,#25,.T.);
52#43=ORIENTED_EDGE('',$,$,#30,.T.);
53#44=ORIENTED_EDGE('',$,$,#35,.T.);
54#45=ORIENTED_EDGE('',$,$,#40,.T.);
55#46=EDGE_LOOP('',(#41,#42,#43,#44,#45));
56#47=FACE_OUTER_BOUND('',#46,.T.);
57#48=ADVANCED_FACE('',(#47),#5,.T.);
58#49=OPEN_SHELL('',(#48));
59#50=SHELL_BASED_SURFACE_MODEL('',(#49));
60#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
61#9051=PRODUCT('Twi303','Twi303','',(#9050));
62#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
63#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
64#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
65#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
66#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
67#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
68#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
69#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
70#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
71#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#50),#9060);
72#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
73ENDSEC;
74END-ISO-10303-21;