N145 — BRepBuilderAPI_Sewing.SameParameterEdge setMaxTolerance-bypass-raw-write

§12.4

topology

Sources

Description

Direct BRep_TEdge::Tolerance() write bypasses SetMaxTolerance() API cap validation.

Reproducer recipe

Expected kernel behavior

reject-with-diagnostic: the wireframe container declares 5.0E-2mm as its only tolerance value (labelled 'sewing_gap', living in the file's live `GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT') -- there is no independently-encoded, smaller 'cap' value in this file to compare it against. A correct kernel should still treat any computed edge tolerance that reaches the outer edge of what the file itself declares as worth an explicit report; whatever internal cap a caller supplies at runtime, the sewing routine must actually reject (not silently accept) a merge whose true tolerance exceeds that cap.

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/* N145: SameParameterEdge setMaxTolerance-bypass-raw-write: MaxTol cap=0.01, computed tol=0.05; raw write ignores cap; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N145'),'2;1');
5FILE_NAME('N145.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('f1_p00',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('f1_p10',(5.0,0.0,0.0));
11#3=CARTESIAN_POINT('f2_p00_gap',(0.0,0.0,0.05));
12#4=CARTESIAN_POINT('f2_p10_gap',(5.0,0.0,0.05));
13#5=VERTEX_POINT('v00',#1);
14#6=VERTEX_POINT('v10',#2);
15#7=VERTEX_POINT('vq00',#3);
16#8=VERTEX_POINT('vq10',#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('shared_e_f1',#5,#6,#11,.T.);
21#13=VECTOR('',#9,5.0);
22#14=LINE('',#3,#13);
23#15=EDGE_CURVE('shared_e_f2_gap',#7,#8,#14,.T.);
24#16=GEOMETRIC_CURVE_SET('sewing_input',(#12,#15));
25#17=APPLICATION_CONTEXT('automotive_design');
26#18=PRODUCT_CONTEXT('',#17,'mechanical');
27#19=PRODUCT('N145','N145','',(#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','sewing_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;