Twi003 — EDGE_LOOP edges not head-to-tail — adjacent edges' shared vertices don't coincide

§12.3b wire-loop

topology

Sources

Description

Edge n's end vertex is not edge n+1's start vertex; they are positioned at distinct `VERTEX_POINT`s separated by more than the kernel's vertex-equality tolerance. The edges are listed in traversal order but the wire is broken: there is a 3D gap between consecutive edges. Affects ~5% of "imperfect" Onshape STEP exports per ABC paper.

Reproducer recipe

STEP face whose `EDGE_LOOP` enumerates `ORIENTED_EDGE`s in topological order but with vertex `VERTEX_POINT`s separated by a small but >tolerance gap.

Expected kernel behavior

merge near-coincident vertices within the kernel's vertex-equality tolerance to close the gap, or reject as malformed if the gap exceeds the working tolerance budget.

Notes

Translation reads the `EDGE_LOOP` end-to-start expecting matching vertices; otherwise the wire transfer fails. **See also**: Gp020, Twi007, Twi034, Twi038. Synonyms: "small gap between consecutive edges", "edges not connected head to tail", "wire has 3D gap between vertices", "Onshape export has disconnected edges", "vertices nearby but not coincident in wire".

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.

Tier-3 assertions

Cross-references

Gp020, Twi007, Twi034, Twi038

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi003: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with four ORIENTED_EDGEs; each edge's end VERTEX_POINT differs from the next edge's start VERTEX_POINT by 0.01 units (well above kernel tolerance); wire is topologically broken at all four junctions; kernel must merge near-coincident vertices or reject as malformed */
3HEADER;
4FILE_DESCRIPTION(('Twi003'),'2;1');
5FILE_NAME('Twi003.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=CARTESIAN_POINT('',(0.99,0.0,0.0));
17#8=CARTESIAN_POINT('',(1.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(1.0,0.99,0.0));
19#10=CARTESIAN_POINT('',(1.0,1.0,0.0));
20#11=CARTESIAN_POINT('',(0.01,1.0,0.0));
21#12=CARTESIAN_POINT('',(0.0,1.0,0.0));
22#13=CARTESIAN_POINT('',(0.0,0.01,0.0));
23#14=VERTEX_POINT('',#6);
24#15=VERTEX_POINT('',#7);
25#16=VERTEX_POINT('',#8);
26#17=VERTEX_POINT('',#9);
27#18=VERTEX_POINT('',#10);
28#19=VERTEX_POINT('',#11);
29#20=VERTEX_POINT('',#12);
30#21=VERTEX_POINT('',#13);
31#22=DIRECTION('',(1.0,0.0,0.0));
32#23=VECTOR('',#22,1.0);
33#24=LINE('',#6,#23);
34#25=EDGE_CURVE('',#14,#15,#24,.T.);
35#26=DIRECTION('',(0.0,1.0,0.0));
36#27=VECTOR('',#26,1.0);
37#28=LINE('',#8,#27);
38#29=EDGE_CURVE('',#16,#17,#28,.T.);
39#30=DIRECTION('',(-1.0,0.0,0.0));
40#31=VECTOR('',#30,1.0);
41#32=LINE('',#10,#31);
42#33=EDGE_CURVE('',#18,#19,#32,.T.);
43#34=DIRECTION('',(0.0,-1.0,0.0));
44#35=VECTOR('',#34,1.0);
45#36=LINE('',#12,#35);
46#37=EDGE_CURVE('',#20,#21,#36,.T.);
47#38=ORIENTED_EDGE('',$,$,#25,.T.);
48#39=ORIENTED_EDGE('',$,$,#29,.T.);
49#40=ORIENTED_EDGE('',$,$,#33,.T.);
50#41=ORIENTED_EDGE('',$,$,#37,.T.);
51#42=EDGE_LOOP('',(#38,#39,#40,#41));
52#43=FACE_OUTER_BOUND('',#42,.T.);
53#44=ADVANCED_FACE('',(#43),#5,.T.);
54#45=OPEN_SHELL('',(#44));
55#46=SHELL_BASED_SURFACE_MODEL('',(#45));
56#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
57#9051=PRODUCT('Twi003','Twi003','',(#9050));
58#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
59#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
60#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
61#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
62#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
63#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
64#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
65#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
66#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
67#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#46),#9060);
68#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
69ENDSEC;
70END-ISO-10303-21;