N164 — `tolerance_closure` — EDGE_LOOP gap exceeds threshold

§12.4

topology

Sources

Description

`tolerance_closure` — EDGE_LOOP gap exceeds threshold

Reproducer recipe

Expected kernel behavior

reject-with-diagnostic: the triangle's edge loop is measured with a genuine 0.05mm gap, against a declared 'loop_closure_gap' tolerance of 5.0E-2mm (i.e. the gap again sits exactly at the file's own declared value, with no independently smaller closure threshold encoded). A correct kernel's loop-closure check must not silently accept an at-or-above-tolerance gap as closed without validation -- it should compute the actual gap and compare it explicitly against whatever closure tolerance is in force, reporting the boundary case.

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* N164: tolerance_closure EDGE_LOOP gap: triangle with 0.05mm gap; closure tol=0.01; sewing skips gap validation; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N164'),'2;1');
5FILE_NAME('N164.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('p0_loop_start',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p1',(5.0,0.0,0.0));
11#3=CARTESIAN_POINT('p2',(2.5,5.0,0.0));
12#4=CARTESIAN_POINT('p3_gap',(0.05,0.0,0.0));
13#5=VERTEX_POINT('v0_loop_start',#1);
14#6=VERTEX_POINT('v1',#2);
15#7=VERTEX_POINT('v2',#3);
16#8=VERTEX_POINT('v3_gap',#4);
17#9=DIRECTION('',(1.0,0.0,0.0));
18#10=VECTOR('',#9,5.0);
19#11=LINE('',#1,#10);
20#12=EDGE_CURVE('e0',#5,#6,#11,.T.);
21#13=DIRECTION('',(-0.5,1.0,0.0));
22#14=VECTOR('',#13,5.0);
23#15=LINE('',#2,#14);
24#16=EDGE_CURVE('e1',#6,#7,#15,.T.);
25#17=DIRECTION('',(-0.489,-1.0,0.0));
26#18=VECTOR('',#17,5.0);
27#19=LINE('',#3,#18);
28#20=EDGE_CURVE('e2_gap',#7,#8,#19,.T.);
29#21=GEOMETRIC_CURVE_SET('unclosed_loop',(#12,#16,#20));
30#22=APPLICATION_CONTEXT('automotive_design');
31#23=PRODUCT_CONTEXT('',#22,'mechanical');
32#24=PRODUCT('N164','N164','',(#23));
33#25=PRODUCT_DEFINITION_FORMATION('','',#24);
34#26=PRODUCT_DEFINITION_CONTEXT('part definition',#22,'design');
35#27=PRODUCT_DEFINITION('','',#25,#26);
36#28=PRODUCT_DEFINITION_SHAPE('','',#27);
37#29=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
38#30=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
39#31=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
40#32=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(5.0E-2),#29,'distance_accuracy_value','loop_closure_gap');
41#33=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#32))GLOBAL_UNIT_ASSIGNED_CONTEXT((#29,#30,#31))REPRESENTATION_CONTEXT('ctx','3D'));
42#34=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#21),#33);
43#35=SHAPE_DEFINITION_REPRESENTATION(#28,#34);
44ENDSEC;
45END-ISO-10303-21;