Twi291 — Two adjacent wire edges' shared corner is encoded as two distinct `VERTEX_POINT`s coincident within tolerance (not bit-identical)

§12.3b wire-loop (sub-class: vertex merge, step-reader edge-loop translation)

P2 — spec deviation (no data loss)

topology

Sources

Description

Two distinct STEP vertex entities used within the same wire — the endpoints two adjacent edges are each supposed to share at their common corner — turn out to be geometrically coincident within tolerance even though STEP declared them as separate entities. This targets the STEP READER's own edge-loop translation logic (`StepToTopoDS_TranslateEdgeLoop::Init`), distinct from the general-purpose `ShapeFix_WireVertex`/`ShapeFix_EdgeConnect` healing utility (Twi284's mechanism) and from Twi017's single-edge closed-curve case (one `EDGE_CURVE`, bit-identical coordinates). Here a regular hexagon's corner between edge 3 and edge 4 is split across two `VERTEX_POINT`s offset by `1e-8` in each coordinate — well within the file's declared `1e-7` uncertainty, but genuinely distinct entities.

Reproducer recipe

`ADVANCED_FACE` on a `PLANE` (regular hexagon, radius 5); `EDGE_LOOP` of six edges where the corner between edge 2 and edge 3 uses `#v3b` (end of edge 2) at one coordinate and `#v4a` (start of edge 3) at a coordinate offset by `1e-8`, both within a global `UNCERTAINTY_MEASURE_WITH_UNIT` of `1e-7`.

Expected kernel behavior

detect the within-tolerance coincidence between adjacent edges' translated vertex points and rebind one vertex to the other so the wire stays topologically connected; if both vertices are already independently bound elsewhere so the rebind can't be done, flag the mismatch as an unresolved connectivity gap rather than silently repairing it.

Notes

**See also**: Twi017 (single-edge closed-curve, bit-identical coordinates — a different call site/mechanism); Twi284 (the general `ShapeFix_WireVertex` healing-utility mechanism, TKShHealing domain, built with bit-identical coordinates) — this fixture is deliberately distinct from both: different domain (`exchange/step-reader`, not `TKShHealing`), different geometry (hexagon, not square), and near-tolerance (not bit-identical) coordinates, matching Gp171's precedent for this exact "1e-8 apart, within declared tolerance" pattern cited in `occt-coverage/exchange/problems.json`. Verified live: the hexagon loads as a single clean face (`n_faces_total==1`, `n_edges_total==6`, `brepcheck.valid==True`) with all six edge lengths coming back at (or within floating-point noise of) `5.0` — confirming the near-coincident corner was successfully reconciled rather than leaving a visible gap or split. Synonyms: "adjacent edges near-coincident vertex within tolerance", "loop vertex merge below uncertainty threshold", "StepToTopoDS_TranslateEdgeLoop rebind", "hexagon corner split across two vertex entities", "set confused adjacent vertex rebind". Provenance tier: bytes-sufficient.

Expected validation

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

Twi017, Twi284, Gp171

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi291: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP for a regular hexagon (radius 5) wire; the corner between edge 3 and edge 4 IS split across two DISTINCT VERTEX_POINT entities — #v3b (end of edge 3) at (2.5,4.330127,0.0) and #v4a (start of edge 4) at (2.50000001,4.33012701,0.0) — offset by 1e-8 in each coordinate, well within the declared UNCERTAINTY_MEASURE_WITH_UNIT of 1e-7, but never unified into one entity; two adjacent edges whose shared corner uses near-coincident-but-distinct VERTEX_POINTs (within tolerance, not bit-identical) IS the mechanism; StepToTopoDS_TranslateEdgeLoop::Init must detect the within-tolerance coincidence between adjacent edges' translated vertex points and rebind one vertex to the other so the wire stays connected, or leave the gap as an unresolved connectivity break if unrepairable; both VERTEX_POINTs ARE wired into EDGE_CURVE, EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi291'),'2;1');
5FILE_NAME('Twi291.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=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-07),#*,'distance_accuracy_value','');
11#2=CARTESIAN_POINT('',(0.0,0.0,0.0));
12#3=DIRECTION('',(0.0,0.0,1.0));
13#4=DIRECTION('',(1.0,0.0,0.0));
14#5=AXIS2_PLACEMENT_3D('',#2,#3,#4);
15#6=PLANE('',#5);
16#7=CARTESIAN_POINT('',(5.0,0.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=CARTESIAN_POINT('',(2.5,4.33012701892,0.0));
19#10=VERTEX_POINT('',#9);
20#11=CARTESIAN_POINT('',(-2.5,4.33012701892,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(-5.0,0.0,0.0));
23#14=VERTEX_POINT('',#13);
24#15=CARTESIAN_POINT('',(-2.5,-4.33012701892,0.0));
25#16=VERTEX_POINT('',#15);
26#17=CARTESIAN_POINT('',(2.5,-4.33012701892,0.0));
27#18=VERTEX_POINT('',#17);
28#19=CARTESIAN_POINT('',(-5.0,0.0,0.0));
29#20=VERTEX_POINT('',#19);
30#21=CARTESIAN_POINT('',(-4.99999999,1.00000006123E-08,0.0));
31#22=VERTEX_POINT('',#21);
32#23=DIRECTION('',(-0.5,0.866025403784,0.0));
33#24=VECTOR('',#23,5.0);
34#25=CARTESIAN_POINT('',(5.0,0.0,0.0));
35#26=LINE('',#25,#24);
36#27=EDGE_CURVE('',#8,#10,#26,.T.);
37#28=DIRECTION('',(-1.0,0.0,0.0));
38#29=VECTOR('',#28,5.0);
39#30=CARTESIAN_POINT('',(2.5,4.33012701892,0.0));
40#31=LINE('',#30,#29);
41#32=EDGE_CURVE('',#10,#12,#31,.T.);
42#33=DIRECTION('',(-0.5,-0.866025403784,0.0));
43#34=VECTOR('',#33,5.0);
44#35=CARTESIAN_POINT('',(-2.5,4.33012701892,0.0));
45#36=LINE('',#35,#34);
46#37=EDGE_CURVE('',#12,#20,#36,.T.);
47#38=DIRECTION('',(0.5,-0.866025403784,0.0));
48#39=VECTOR('',#38,5.0);
49#40=CARTESIAN_POINT('',(-5.0,0.0,0.0));
50#41=LINE('',#40,#39);
51#42=EDGE_CURVE('',#22,#16,#41,.T.);
52#43=DIRECTION('',(1.0,0.0,0.0));
53#44=VECTOR('',#43,5.0);
54#45=CARTESIAN_POINT('',(-2.5,-4.33012701892,0.0));
55#46=LINE('',#45,#44);
56#47=EDGE_CURVE('',#16,#18,#46,.T.);
57#48=DIRECTION('',(0.5,0.866025403784,0.0));
58#49=VECTOR('',#48,5.0);
59#50=CARTESIAN_POINT('',(2.5,-4.33012701892,0.0));
60#51=LINE('',#50,#49);
61#52=EDGE_CURVE('',#18,#8,#51,.T.);
62#53=ORIENTED_EDGE('',$,$,#27,.T.);
63#54=ORIENTED_EDGE('',$,$,#32,.T.);
64#55=ORIENTED_EDGE('',$,$,#37,.T.);
65#56=ORIENTED_EDGE('',$,$,#42,.T.);
66#57=ORIENTED_EDGE('',$,$,#47,.T.);
67#58=ORIENTED_EDGE('',$,$,#52,.T.);
68#59=EDGE_LOOP('',(#53,#54,#55,#56,#57,#58));
69#60=FACE_OUTER_BOUND('',#59,.T.);
70#61=ADVANCED_FACE('',(#60),#6,.T.);
71#62=OPEN_SHELL('',(#61));
72#63=SHELL_BASED_SURFACE_MODEL('',(#62));
73#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
74#9051=PRODUCT('Twi291','Twi291','',(#9050));
75#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
76#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
77#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
78#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
79#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
80#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
81#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
82#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
83#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
84#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#63),#9060);
85#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
86ENDSEC;
87END-ISO-10303-21;