N099 — BRepLib.UpdateEdgeTol multi-face-edge buffer overflow

§12.4

topology

Sources

Description

BRepLib.UpdateEdgeTol multi-face-edge buffer overflow

Reproducer recipe

Expected kernel behavior

accept: the shape is well-formed at the declared 1.0E-7mm tolerance. Whether an edge shared by 6+ faces overflows a fixed-size internal buffer during tolerance sampling is an implementation detail of one specific algorithm, not something this file's topology alone can force -- a correct kernel's per-edge face-intersection sampling must size its working storage to the edge's actual face count, not a hardcoded constant.

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/* N099: UpdateEdgeTol multi-face-edge buffer overflow: central edge shared by 6 faces; hardcoded 4-face buffer overflows on 6th face sample; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N099'),'2;1');
5FILE_NAME('N099.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('p_center',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p_end',(1.0,0.0,0.0));
11#3=VERTEX_POINT('v_center',#1);
12#4=VERTEX_POINT('v_end',#2);
13#5=DIRECTION('',(1.0,0.0,0.0));
14#6=VECTOR('',#5,1.0);
15#7=LINE('',#1,#6);
16#8=EDGE_CURVE('central_edge',#3,#4,#7,.T.);
17#9=CARTESIAN_POINT('p_fan0',(1.0,0.0,0.0));
18#10=VERTEX_POINT('v_fan0',#9);
19#11=DIRECTION('',(1.0,0.0,0.0));
20#12=VECTOR('',#11,1.0);
21#13=LINE('ln_fan0',#1,#12);
22#14=EDGE_CURVE('fan_edge0',#3,#10,#13,.T.);
23#15=CARTESIAN_POINT('p_fan1',(0.5,0.866025403784,0.0));
24#16=VERTEX_POINT('v_fan1',#15);
25#17=DIRECTION('',(0.5,0.866025403784,0.0));
26#18=VECTOR('',#17,1.0);
27#19=LINE('ln_fan1',#1,#18);
28#20=EDGE_CURVE('fan_edge1',#3,#16,#19,.T.);
29#21=CARTESIAN_POINT('p_fan2',(-0.5,0.866025403784,0.0));
30#22=VERTEX_POINT('v_fan2',#21);
31#23=DIRECTION('',(-0.5,0.866025403784,0.0));
32#24=VECTOR('',#23,1.0);
33#25=LINE('ln_fan2',#1,#24);
34#26=EDGE_CURVE('fan_edge2',#3,#22,#25,.T.);
35#27=CARTESIAN_POINT('p_fan3',(-1.0,0.0,0.0));
36#28=VERTEX_POINT('v_fan3',#27);
37#29=DIRECTION('',(-1.0,0.0,0.0));
38#30=VECTOR('',#29,1.0);
39#31=LINE('ln_fan3',#1,#30);
40#32=EDGE_CURVE('fan_edge3',#3,#28,#31,.T.);
41#33=CARTESIAN_POINT('p_fan4',(-0.5,-0.866025403784,0.0));
42#34=VERTEX_POINT('v_fan4',#33);
43#35=DIRECTION('',(-0.5,-0.866025403784,0.0));
44#36=VECTOR('',#35,1.0);
45#37=LINE('ln_fan4',#1,#36);
46#38=EDGE_CURVE('fan_edge4',#3,#34,#37,.T.);
47#39=CARTESIAN_POINT('p_fan5',(0.5,-0.866025403784,0.0));
48#40=VERTEX_POINT('v_fan5',#39);
49#41=DIRECTION('',(0.5,-0.866025403784,0.0));
50#42=VECTOR('',#41,1.0);
51#43=LINE('ln_fan5',#1,#42);
52#44=EDGE_CURVE('fan_edge5',#3,#40,#43,.T.);
53#45=GEOMETRIC_CURVE_SET('starburst',(#8,#14,#20,#26,#32,#38,#44));
54#46=APPLICATION_CONTEXT('automotive_design');
55#47=PRODUCT_CONTEXT('',#46,'mechanical');
56#48=PRODUCT('N099','N099','',(#47));
57#49=PRODUCT_DEFINITION_FORMATION('','',#48);
58#50=PRODUCT_DEFINITION_CONTEXT('part definition',#46,'design');
59#51=PRODUCT_DEFINITION('','',#49,#50);
60#52=PRODUCT_DEFINITION_SHAPE('','',#51);
61#53=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
62#54=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
63#55=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
64#56=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#53,'distance_accuracy_value','model_precision');
65#57=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#56))GLOBAL_UNIT_ASSIGNED_CONTEXT((#53,#54,#55))REPRESENTATION_CONTEXT('ctx','3D'));
66#58=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#45),#57);
67#59=SHAPE_DEFINITION_REPRESENTATION(#52,#58);
68ENDSEC;
69END-ISO-10303-21;