Twi007 — Disordered edges in wire — listed out of traversal order but reorderable

§12.3b wire-loop

topology

Sources

Description

The edges in an `EDGE_LOOP` are emitted in arbitrary order; the head/tail vertices of consecutive entries do not match, but the edges as a set can be reordered into a valid head-to-tail traversal. Common with Pro/E composite-curve segments where the exporter writes edges in arbitrary slot order.

Reproducer recipe

STEP face whose `EDGE_LOOP` lists edges in non-traversal order; vertices common but not adjacent.

Expected kernel behavior

reorder the edges by vertex matching to recover a head-to-tail traversal; if no consistent ordering exists (some edges need flipping or no permutation works), reject as malformed.

Notes

For STEP-disordered loops where reordering alone is insufficient and orientation flipping is also required, see Twi038. **See also**: Twi003. Synonyms: "edges out of order in wire", "wire edges in random sequence", "Pro/E composite curve in wrong slot order", "edges shuffled in EDGE_LOOP", "reorderable but not head-to-tail".

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

Twi003, Twi038

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi007: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with four ORIENTED_EDGEs listed in non-traversal slot order (0→1, 2→3, 3→0, 1→2 of unit square); head/tail vertices of consecutive emitted edges do not match; edges as a set can be reordered into one valid head-to-tail circuit; disordered EDGE_LOOP IS the mechanism; kernel must reorder by vertex matching to recover head-to-tail traversal; if no consistent ordering exists reject as malformed */
3HEADER;
4FILE_DESCRIPTION(('Twi007'),'2;1');
5FILE_NAME('Twi007.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('',(1.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(1.0,1.0,0.0));
18#9=CARTESIAN_POINT('',(0.0,1.0,0.0));
19#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(1.0,0.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(1.0,0.0,0.0));
24#15=VERTEX_POINT('',#14);
25#16=CARTESIAN_POINT('',(1.0,1.0,0.0));
26#17=VERTEX_POINT('',#16);
27#18=CARTESIAN_POINT('',(1.0,1.0,0.0));
28#19=VERTEX_POINT('',#18);
29#20=CARTESIAN_POINT('',(0.0,1.0,0.0));
30#21=VERTEX_POINT('',#20);
31#22=CARTESIAN_POINT('',(0.0,1.0,0.0));
32#23=VERTEX_POINT('',#22);
33#24=CARTESIAN_POINT('',(0.0,0.0,0.0));
34#25=VERTEX_POINT('',#24);
35#26=DIRECTION('',(1.0,0.0,0.0));
36#27=VECTOR('',#26,1.0);
37#28=LINE('',#6,#27);
38#29=EDGE_CURVE('',#11,#13,#28,.T.);
39#30=DIRECTION('',(0.0,1.0,0.0));
40#31=VECTOR('',#30,1.0);
41#32=LINE('',#7,#31);
42#33=EDGE_CURVE('',#15,#17,#32,.T.);
43#34=DIRECTION('',(-1.0,0.0,0.0));
44#35=VECTOR('',#34,1.0);
45#36=LINE('',#8,#35);
46#37=EDGE_CURVE('',#19,#21,#36,.T.);
47#38=DIRECTION('',(0.0,-1.0,0.0));
48#39=VECTOR('',#38,1.0);
49#40=LINE('',#9,#39);
50#41=EDGE_CURVE('',#23,#25,#40,.T.);
51#42=ORIENTED_EDGE('',$,$,#29,.T.);
52#43=ORIENTED_EDGE('',$,$,#37,.T.);
53#44=ORIENTED_EDGE('',$,$,#41,.T.);
54#45=ORIENTED_EDGE('',$,$,#33,.T.);
55#46=EDGE_LOOP('',(#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('Twi007','Twi007','',(#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;