Twi284 — Consecutive wire edges share a corner location via two distinct `VERTEX_POINT` entities (coincident, not reused)

§12.3b wire-loop (sub-class: vertex unification)

P2 — spec deviation (no data loss)

topology

Sources

Description

Two consecutive edges of one wire meet at a corner. Instead of the normal pattern — edge A's end vertex and edge B's start vertex ARE the same `VERTEX_POINT` entity — the sender emits two separate `VERTEX_POINT` entities that sit at identical coordinates. The wire looks geometrically closed but is topologically torn at that corner; the general-purpose vertex-unification utility must recognize the coincident-but-distinct pair and merge them into one shared vertex before the wire can be trusted as connected. This is the opposite direction from Twi009/Twi050 (`ShapeFix_SplitCommonVertex`): those fixtures have ONE vertex entity over-shared across two wires that must be split apart; here there are TWO vertex entities at the SAME wire corner that must be merged together.

Reproducer recipe

A 4-edge planar square wire whose bottom-right corner at `(10,0,0)` is split across two `VERTEX_POINT` entities — one is the end vertex of the bottom `EDGE_CURVE`, the other is the start vertex of the right `EDGE_CURVE` — both citing `CARTESIAN_POINT('',(10.0,0.0,0.0))` but never the same entity.

Expected kernel behavior

detect the coincident-but-distinct vertex pair at the shared corner and merge them into a single shared vertex (position = midpoint / aggregate of the originals, tolerance = max deviation plus margin), rewiring both edges to the merged vertex; or reject the wire as malformed.

Notes

**See also**: Twi009, Twi050 (SplitCommonVertex — the opposite direction: one vertex over-shared across two wires, split apart). Twi285 covers the companion subvariant (non-adjacent edges registered as touching via a broader connectivity graph, e.g. sewing). Synonyms: "two vertex entities at same wire corner", "coincident but distinct VERTEX_POINT at edge junction", "wire corner not welded", "vertex fragmentation at shared corner", "duplicate coordinate vertex needs merging". Provenance tier: bytes-sufficient.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) 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

Twi009, Twi050, Twi285

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi284: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP for a 10x10 square wire; the bottom-right corner at (10,0,0) IS split across two DISTINCT VERTEX_POINT entities — #v1a (end of the bottom EDGE_CURVE) and #v1b (start of the right EDGE_CURVE) — both at identical coordinates but never unified into one entity; two coincident-but-distinct VERTEX_POINTs at one wire corner IS the mechanism; the general vertex-unification utility (ShapeFix_WireVertex/ShapeFix_EdgeConnect::Build) must detect the coincident pair and merge them into a single shared vertex; both VERTEX_POINTs ARE wired into EDGE_CURVE, EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi284'),'2;1');
5FILE_NAME('Twi284.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('',(10.0,0.0,0.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,10.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,10.0,0.0));
24#15=VERTEX_POINT('',#14);
25#16=CARTESIAN_POINT('',(0.0,0.0,0.0));
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=VECTOR('',#17,10.0);
28#19=LINE('',#16,#18);
29#20=EDGE_CURVE('',#7,#9,#19,.T.);
30#21=ORIENTED_EDGE('',$,$,#20,.T.);
31#22=CARTESIAN_POINT('',(10.0,0.0,0.0));
32#23=DIRECTION('',(0.0,1.0,0.0));
33#24=VECTOR('',#23,10.0);
34#25=LINE('',#22,#24);
35#26=EDGE_CURVE('',#11,#13,#25,.T.);
36#27=ORIENTED_EDGE('',$,$,#26,.T.);
37#28=CARTESIAN_POINT('',(10.0,10.0,0.0));
38#29=DIRECTION('',(-1.0,0.0,0.0));
39#30=VECTOR('',#29,10.0);
40#31=LINE('',#28,#30);
41#32=EDGE_CURVE('',#13,#15,#31,.T.);
42#33=ORIENTED_EDGE('',$,$,#32,.T.);
43#34=CARTESIAN_POINT('',(0.0,10.0,0.0));
44#35=DIRECTION('',(0.0,-1.0,0.0));
45#36=VECTOR('',#35,10.0);
46#37=LINE('',#34,#36);
47#38=EDGE_CURVE('',#15,#7,#37,.T.);
48#39=ORIENTED_EDGE('',$,$,#38,.T.);
49#40=EDGE_LOOP('',(#21,#27,#33,#39));
50#41=FACE_OUTER_BOUND('',#40,.T.);
51#42=ADVANCED_FACE('',(#41),#5,.T.);
52#43=OPEN_SHELL('',(#42));
53#44=SHELL_BASED_SURFACE_MODEL('',(#43));
54#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
55#9051=PRODUCT('Twi284','Twi284','',(#9050));
56#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
57#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
58#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
59#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
60#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
61#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
62#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
63#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
64#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
65#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#44),#9060);
66#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
67ENDSEC;
68END-ISO-10303-21;