N001 — Vertex `UNCERTAINTY_MEASURE_WITH_UNIT` larger than edge / face value (tolerance hierarchy violation)

§12.4 (sub-class: hierarchy)

P1 — silent data loss

units

Sources

Sender

any (post-healing regression)

Description

After a healing pass runs, vertex tolerance is larger than the edge tolerance of its containing edge, and edge tolerance is larger than the face tolerance of its containing face; the tolerance hierarchy is inverted. Common file signature: `GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT` (or per-shape `UNCERTAINTY_MEASURE_WITH_UNIT` instances) at three precision levels (face 1e-7, edge 1e-3, vertex 1e-2), with the per-element tolerances increasing as you go down the topology hierarchy. The invariant that a vertex's tolerance disc must fit inside its edge's tolerance disc, and an edge's disc inside its face's, is broken. Downstream Boolean and meshing algorithms rely on this hierarchy and produce incorrect results when it is violated.

Reproducer recipe

Build a `MANIFOLD_SOLID_BREP` whose vertices carry confusion-level tolerance, edges 1e-7, faces 1e-7. Run a healing pass with default flags after introducing a sub-tolerance gap. Inspect per-element tolerance after the fix.

Expected kernel behavior

a healing pass that inflates a sub-shape's tolerance must propagate the inflation upward (vertex bumps edge, edge bumps face) so the hierarchy invariant always holds; or refuse to inflate when propagation would be unsafe.

Notes

Canonical real-world regression: OCCT test `tests/bugs/heal/bug329`. Synonyms: "vertex tolerance bigger than edge tolerance", "tolerance hierarchy inverted", "edge tolerance exceeds face tolerance", "tolerance grows down the topology", "vertex disc doesn't fit inside edge disc".

Expected validation

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

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* N001: tolerance hierarchy inverted: vertex tol=1.0E-2 > edge tol=1.0E-3 > face tol=1.0E-7; three UNCERTAINTY_MEASURE_WITH_UNIT in GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N001'),'2;1');
5FILE_NAME('N001.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',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p1',(10.0,0.0,0.0));
11#3=VERTEX_POINT('v0',#1);
12#4=VERTEX_POINT('v1',#2);
13#5=DIRECTION('',(1.0,0.0,0.0));
14#6=VECTOR('',#5,10.0);
15#7=LINE('',#1,#6);
16#8=EDGE_CURVE('edge',#3,#4,#7,.T.);
17#9=GEOMETRIC_CURVE_SET('edges',(#8));
18#10=APPLICATION_CONTEXT('automotive_design');
19#11=PRODUCT_CONTEXT('',#10,'mechanical');
20#12=PRODUCT('N001','N001','',(#11));
21#13=PRODUCT_DEFINITION_FORMATION('','',#12);
22#14=PRODUCT_DEFINITION_CONTEXT('part definition',#10,'design');
23#15=PRODUCT_DEFINITION('','',#13,#14);
24#16=PRODUCT_DEFINITION_SHAPE('','',#15);
25#17=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
26#18=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
27#19=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
28#20=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#17,'face_distance_accuracy','face_tol_tight');
29#21=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#17,'edge_distance_accuracy','edge_tol_bloated');
30#22=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-2),#17,'vertex_distance_accuracy','vertex_tol_worst');
31#23=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#20,#21,#22))GLOBAL_UNIT_ASSIGNED_CONTEXT((#17,#18,#19))REPRESENTATION_CONTEXT('ctx','3D'));
32#24=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#9),#23);
33#25=SHAPE_DEFINITION_REPRESENTATION(#16,#24);
34ENDSEC;
35END-ISO-10303-21;