N061 — BRepLib.BoundingVertex bounding-sphere under-estimate

§12.4

topology

Sources

Description

BRepLib.BoundingVertex bounding-sphere under-estimate

Reproducer recipe

Expected kernel behavior

heal: the 5 vertices are genuinely clustered within 5e-9mm of (1,1,1) (measured directly from coordinates), well inside the file's declared 1.0E-7mm tolerance. A correct kernel should merge all 5 into a single vertex and drop the 4 chained near-zero-length edges rather than building a degenerate 4-edge polyline whose total extent (~2e-8mm) is two orders of magnitude below the working precision.

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/* N061: 5 vertices co-located within 1e-8 of (1,1,1); 4 degenerate edges; bounding-sphere heuristic under-estimates radius; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N061'),'2;1');
5FILE_NAME('N061.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_clust0',(1.0,1.0,1.0));
10#2=CARTESIAN_POINT('p_clust1',(1.000000005,1.0,1.0));
11#3=CARTESIAN_POINT('p_clust2',(1.0,1.000000005,1.0));
12#4=CARTESIAN_POINT('p_clust3',(1.0,1.0,1.000000005));
13#5=CARTESIAN_POINT('p_clust4',(1.000000005,1.000000005,1.000000005));
14#6=VERTEX_POINT('v_clust0',#1);
15#7=VERTEX_POINT('v_clust1',#2);
16#8=VERTEX_POINT('v_clust2',#3);
17#9=VERTEX_POINT('v_clust3',#4);
18#10=VERTEX_POINT('v_clust4',#5);
19#11=DIRECTION('',(1.0,0.0,0.0));
20#12=VECTOR('',#11,5.0E-09);
21#13=LINE('tiny_line0',#1,#12);
22#14=EDGE_CURVE('tiny_edge0',#6,#7,#13,.T.);
23#15=DIRECTION('',(1.0,0.0,0.0));
24#16=VECTOR('',#15,5.0E-09);
25#17=LINE('tiny_line1',#2,#16);
26#18=EDGE_CURVE('tiny_edge1',#7,#8,#17,.T.);
27#19=DIRECTION('',(1.0,0.0,0.0));
28#20=VECTOR('',#19,5.0E-09);
29#21=LINE('tiny_line2',#3,#20);
30#22=EDGE_CURVE('tiny_edge2',#8,#9,#21,.T.);
31#23=DIRECTION('',(1.0,0.0,0.0));
32#24=VECTOR('',#23,5.0E-09);
33#25=LINE('tiny_line3',#4,#24);
34#26=EDGE_CURVE('tiny_edge3',#9,#10,#25,.T.);
35#27=GEOMETRIC_CURVE_SET('bounding_cluster',(#14,#18,#22,#26));
36#28=APPLICATION_CONTEXT('automotive_design');
37#29=PRODUCT_CONTEXT('',#28,'mechanical');
38#30=PRODUCT('N061','N061','',(#29));
39#31=PRODUCT_DEFINITION_FORMATION('','',#30);
40#32=PRODUCT_DEFINITION_CONTEXT('part definition',#28,'design');
41#33=PRODUCT_DEFINITION('','',#31,#32);
42#34=PRODUCT_DEFINITION_SHAPE('','',#33);
43#35=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
44#36=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
45#37=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
46#38=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#35,'distance_accuracy_value','receiver_tol');
47#39=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#38))GLOBAL_UNIT_ASSIGNED_CONTEXT((#35,#36,#37))REPRESENTATION_CONTEXT('ctx','3D'));
48#40=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#27),#39);
49#41=SHAPE_DEFINITION_REPRESENTATION(#34,#40);
50ENDSEC;
51END-ISO-10303-21;