Twi013 — Small / sliver / zero-length edges in wire (endpoints near-coincident)

§12.3b wire-loop

topology

Sources

Description

An `EDGE_CURVE` whose 3D length is below the kernel's working tolerance; both endpoint vertices are nearly coincident. Often the remnant of a translated tangency or an over-trimmed edge. The edge contributes nothing to the topology but its presence in the host wire confuses traversal-order and self-intersection logic.

Reproducer recipe

`EDGE_CURVE` whose two `VERTEX_POINT` `CARTESIAN_POINT`s differ by 1e-9 m on a 1 m part; underlying `LINE` of nominally that length.

Expected kernel behavior

drop the sliver edge and merge its endpoints; rebuild any adjacent wires; or reject as malformed. The fix must not let the sliver propagate into a face outer bound.

Notes

**See also**: Twi011. Synonyms: "edge has zero length", "wire has tiny sliver edge", "endpoints near-coincident on edge", "nano-meter scale edge", "over-trimmed edge in wire".

Expected validation

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

Twi011

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi013: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with 4 ORIENTED_EDGEs; three edges form most of a 1×1 square; the fourth is a sliver EDGE_CURVE with both VERTEX_POINTs at (1,1,0) and (1+1e-9, 1, 0) — endpoint separation is 1e-9 (1 nm on 1 m part); near-zero-length sliver EDGE_CURVE IS the mechanism; kernel must drop sliver and merge endpoints or reject as malformed; sliver must not propagate into face outer bound */
3HEADER;
4FILE_DESCRIPTION(('Twi013'),'2;1');
5FILE_NAME('Twi013.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,1.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(1.000000001,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('',#18,#17);
29#20=EDGE_CURVE('',#7,#9,#19,.T.);
30#21=DIRECTION('',(0.0,1.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=CARTESIAN_POINT('',(1.0,0.0,0.0));
33#24=LINE('',#23,#22);
34#25=EDGE_CURVE('',#9,#11,#24,.T.);
35#26=DIRECTION('',(0.0,-1.0,0.0));
36#27=VECTOR('',#26,1.0);
37#28=CARTESIAN_POINT('',(0.0,1.0,0.0));
38#29=LINE('',#28,#27);
39#30=EDGE_CURVE('',#15,#7,#29,.T.);
40#31=DIRECTION('',(1.0,0.0,0.0));
41#32=VECTOR('',#31,1.00000008274E-09);
42#33=CARTESIAN_POINT('',(1.0,1.0,0.0));
43#34=LINE('',#33,#32);
44#35=EDGE_CURVE('',#11,#13,#34,.T.);
45#36=CARTESIAN_POINT('',(1.000000001,1.0,0.0));
46#37=VERTEX_POINT('',#36);
47#38=DIRECTION('',(-1.0,0.0,0.0));
48#39=VECTOR('',#38,1.000000001);
49#40=CARTESIAN_POINT('',(1.000000001,1.0,0.0));
50#41=LINE('',#40,#39);
51#42=EDGE_CURVE('',#13,#15,#41,.T.);
52#43=ORIENTED_EDGE('',$,$,#20,.T.);
53#44=ORIENTED_EDGE('',$,$,#25,.T.);
54#45=ORIENTED_EDGE('',$,$,#35,.T.);
55#46=ORIENTED_EDGE('',$,$,#42,.T.);
56#47=ORIENTED_EDGE('',$,$,#30,.T.);
57#48=EDGE_LOOP('',(#43,#44,#45,#46,#47));
58#49=FACE_OUTER_BOUND('',#48,.T.);
59#50=ADVANCED_FACE('',(#49),#5,.T.);
60#51=OPEN_SHELL('',(#50));
61#52=SHELL_BASED_SURFACE_MODEL('',(#51));
62#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
63#9051=PRODUCT('Twi013','Twi013','',(#9050));
64#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
65#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
66#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
67#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
68#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
69#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
70#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
71#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
72#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
73#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#52),#9060);
74#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
75ENDSEC;
76END-ISO-10303-21;