Twi067 — Lacking edge: 2D gap not absorbable by vertex tolerance

§12.3b wires / loops / edges (sub-class: lacking-edge)

P1 — silent data loss

topology

Sources

Description

Between two consecutive edges of a wire, the pcurve endpoints differ by more than the shared vertex's tolerance can cover. The 3D coordinates may agree but in UV there is a gap that requires *insertion* of a connecting edge; not just snapping.

Reproducer recipe

An edge ends at UV `(10, 0)`; the next edge starts at UV `(10.5, 0)` — pcurve gap 0.5 in UV space, but 3D distance is small because the host surface compresses parameter space at that location.

Expected kernel behavior

report DONE1 (gap too large for vertex tolerance) vs DONE2 (vector across gap is anti-parallel to neighboring pcurves); insert a synthetic connecting edge or reject. The insertion's geometry must be consistent with both neighbors.

Notes

One of the canonical "needs a degenerate seam edge" defects in periodic-surface land. Synonyms: "UV gap too big for vertex tolerance", "lacking edge in parameter space", "wire 2D gap can't be absorbed by snap", "synthesized connecting edge needed in UV".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi067: GEOMETRIC_CURVE_SET containing EDGE_LOOP on CYLINDRICAL_SURFACE (radius 1); 2 SURFACE_CURVE edges: e1 pcurve ends at UV (10.0,0.0); e2 pcurve labelled 'B_pc_starts_at_U10p5' starts at UV (10.5,0.0); 0.5-unit UV gap at junction exceeds vertex tolerance — CheckLacking detects gap requires synthetic connecting edge; 3D vertex distance is small (cylinder compresses U parameter); GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi067'),'2;1');
5FILE_NAME('Twi067.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=CYLINDRICAL_SURFACE('',#4,1.0);
15#6=CARTESIAN_POINT('',(-0.911130261885,0.412118485242,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(-0.839071529076,-0.544021110889,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(-0.475536927996,-0.879695759972,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(0.483304758753,-0.875452174688,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(9.0,0.0));
24#15=DIRECTION('',(1.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#14,#16);
27#18=DEFINITIONAL_REPRESENTATION('',(#17),#?);
28#19=PCURVE('',#5,#18);
29#20=CARTESIAN_POINT('',(10.5,0.0));
30#21=DIRECTION('',(1.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('B_pc_starts_at_U10p5',#20,#22);
33#24=DEFINITIONAL_REPRESENTATION('',(#23),#?);
34#25=PCURVE('',#5,#24);
35#26=CARTESIAN_POINT('',(-0.911130261885,0.412118485242,0.0));
36#27=DIRECTION('',(0.0751511204618,-0.997172156196,0.0));
37#28=VECTOR('',#27,0.958851077208);
38#29=LINE('',#26,#28);
39#30=SURFACE_CURVE('',#29,(#19),.PCURVE_S1.);
40#31=EDGE_CURVE('',#7,#9,#30,.T.);
41#32=ORIENTED_EDGE('',*,*,#31,.T.);
42#33=CARTESIAN_POINT('',(-0.475536927996,-0.879695759972,0.0));
43#34=DIRECTION('',(0.999990206551,0.00442569798805,0.0));
44#35=VECTOR('',#34,0.958851077208);
45#36=LINE('',#33,#35);
46#37=SURFACE_CURVE('',#36,(#25),.PCURVE_S1.);
47#38=EDGE_CURVE('',#11,#13,#37,.T.);
48#39=ORIENTED_EDGE('',*,*,#38,.T.);
49#40=EDGE_LOOP('',(#32,#39));
50#41=GEOMETRIC_CURVE_SET('',(#40));
51#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
52#9051=PRODUCT('Twi067','Twi067','',(#9050));
53#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
54#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
55#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
56#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
57#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#41),#9060);
63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
64ENDSEC;
65END-ISO-10303-21;