N159 — direct_BRep_TEdge_tolerance_write bypass

§12.4

topology

Sources

Description

direct_BRep_TEdge_tolerance_write bypass

Reproducer recipe

Expected kernel behavior

accept: the two edges are measured with a genuine 0.05mm gap in Z, and the file's only declared tolerance is that same value, 5.0E-2mm ('raw_write_gap') -- the gap sits exactly at the file's own declared working precision, not comfortably inside or outside it. A correct kernel faced with a gap exactly at its declared tolerance should report the boundary condition explicitly (rather than silently merging or silently rejecting) since there is no independent, smaller 'cap' value encoded in this file to check the computed tolerance against.

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/* N159: direct_BRep_TEdge_tolerance_write bypass: two edges 0.05mm gap; raw TEdge write ignores SetMaxTolerance(0.01) cap; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N159'),'2;1');
5FILE_NAME('N159.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('p0a',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p1a',(5.0,0.0,0.0));
11#3=CARTESIAN_POINT('p0b_gap',(0.0,0.0,0.05));
12#4=CARTESIAN_POINT('p1b_gap',(5.0,0.0,0.05));
13#5=VERTEX_POINT('v0a',#1);
14#6=VERTEX_POINT('v1a',#2);
15#7=VERTEX_POINT('v0b',#3);
16#8=VERTEX_POINT('v1b',#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('eA',#5,#6,#11,.T.);
21#13=VECTOR('',#9,5.0);
22#14=LINE('',#3,#13);
23#15=EDGE_CURVE('eB_gap',#7,#8,#14,.T.);
24#16=GEOMETRIC_CURVE_SET('direct_write_bypass',(#12,#15));
25#17=APPLICATION_CONTEXT('automotive_design');
26#18=PRODUCT_CONTEXT('',#17,'mechanical');
27#19=PRODUCT('N159','N159','',(#18));
28#20=PRODUCT_DEFINITION_FORMATION('','',#19);
29#21=PRODUCT_DEFINITION_CONTEXT('part definition',#17,'design');
30#22=PRODUCT_DEFINITION('','',#20,#21);
31#23=PRODUCT_DEFINITION_SHAPE('','',#22);
32#24=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
33#25=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
34#26=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
35#27=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(5.0E-2),#24,'distance_accuracy_value','raw_write_gap');
36#28=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#27))GLOBAL_UNIT_ASSIGNED_CONTEXT((#24,#25,#26))REPRESENTATION_CONTEXT('ctx','3D'));
37#29=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#16),#28);
38#30=SHAPE_DEFINITION_REPRESENTATION(#23,#29);
39ENDSEC;
40END-ISO-10303-21;