Twi068 — Wire 3D-gap analysis must enumerate all gaps (EDGE_LOOP with multiple junctions where consecutive ORIENTED_EDGEs have mismatched VERTEX_POINTs, e.g., 0.05-0.07 mm gaps)

§12.3b wires / loops / edges (sub-class: gap-analysis)

P1 — silent data loss

topology

Sources

Description

The wire-wide 3D gap analyzer must visit every consecutive-edge junction and report each gap individually. A wire with multiple defective junctions should not be reported as "broken at junction 1" when it also breaks at junctions 3 and 5.

Reproducer recipe

A four-edge wire where the gaps between edge-pairs (1,2), (2,3), and (3,4) are each above tolerance.

Expected kernel behavior

Heal and accept: normalize a per-junction list of (junction_index, 3D_gap_distance); enables downstream batch repair / healing.

Notes

Per-wire counterpart to Twi072 (single-junction). Synonyms: "wire has multiple gap junctions", "all junction gaps must be enumerated", "list every gap location in wire", "per-junction 3D gap report for whole wire".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Twi072

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi068: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 4 LINE edges; junction gaps: e1 ends at (1,0,0), e2 starts at (1.05,0,0) — gap 0.05; e2 ends at (2,0,0), e3 starts at (2.07,0,0) — gap 0.07; e3 ends at (2,1,0), e4 starts at (2,1.06,0) — gap 0.06; CheckGaps3d must enumerate all 3 junction gaps, not stop at first; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi068'),'2;1');
5FILE_NAME('Twi068.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=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(1.0,0.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(1.05,0.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(2.0,0.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=CARTESIAN_POINT('',(2.07,0.0,0.0));
19#10=VERTEX_POINT('',#9);
20#11=CARTESIAN_POINT('',(2.0,1.0,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(2.0,1.06,0.0));
23#14=VERTEX_POINT('',#13);
24#15=CARTESIAN_POINT('',(0.0,0.0,0.0));
25#16=VERTEX_POINT('',#15);
26#17=CARTESIAN_POINT('',(0.0,0.0,0.0));
27#18=DIRECTION('',(1.0,0.0,0.0));
28#19=VECTOR('',#18,1.0);
29#20=LINE('',#17,#19);
30#21=EDGE_CURVE('',#2,#4,#20,.T.);
31#22=ORIENTED_EDGE('',$,$,#21,.T.);
32#23=CARTESIAN_POINT('',(1.05,0.0,0.0));
33#24=DIRECTION('',(1.0,0.0,0.0));
34#25=VECTOR('',#24,0.95);
35#26=LINE('',#23,#25);
36#27=EDGE_CURVE('',#6,#8,#26,.T.);
37#28=ORIENTED_EDGE('',$,$,#27,.T.);
38#29=CARTESIAN_POINT('',(2.07,0.0,0.0));
39#30=DIRECTION('',(-0.0698291276999,0.997558967142,0.0));
40#31=VECTOR('',#30,1.00244700608);
41#32=LINE('',#29,#31);
42#33=EDGE_CURVE('',#10,#12,#32,.T.);
43#34=ORIENTED_EDGE('',$,$,#33,.T.);
44#35=CARTESIAN_POINT('',(2.0,1.06,0.0));
45#36=DIRECTION('',(-0.883572899969,-0.468293636984,0.0));
46#37=VECTOR('',#36,2.26353705514);
47#38=LINE('',#35,#37);
48#39=EDGE_CURVE('',#14,#16,#38,.T.);
49#40=ORIENTED_EDGE('',$,$,#39,.T.);
50#41=EDGE_LOOP('',(#22,#28,#34,#40));
51#42=GEOMETRIC_CURVE_SET('',(#41));
52#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
53#9051=PRODUCT('Twi068','Twi068','',(#9050));
54#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
55#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
56#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
57#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
58#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
59#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
60#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
61#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
62#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
63#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#42),#9060);
64#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
65ENDSEC;
66END-ISO-10303-21;