N003 — Same-domain face merge inflates shared-vertex tolerance to worst input

§12.4 (sub-class: tolerance ballooning by healing)

P1 — silent data loss

topology

Sources

Description

When two adjacent faces with the same supporting surface are merged into one (their shared edge is dissolved), the resulting shared vertex inherits a tolerance equal to the worst-case vertex among the merged inputs; e.g. `1e-1` even though one input vertex was `2e-7`. Downstream algorithms then treat points as fuzzy-equal where they were previously precise.

Reproducer recipe

Two coplanar faces with vertex tolerance 2e-7 and one vertex with tolerance 1e-1 (from prior healing). Apply same-domain face merging.

Expected kernel behavior

recompute tolerance from actual post-merge geometric deviation rather than aggregating the worst input. A merge that takes a previously-precise vertex and balloons its tolerance is a fidelity loss.

Notes

**See also**: A019, N040. Synonyms: "merge adopts worst input vertex tolerance", "shared vertex tolerance jumps after merge", "merged vertex inherits 1e-1 from worst neighbor", "face merge bloats fuzzy compare on shared vertex".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

A019, N040

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* N003: same-domain face merge: shared vertex inherits worst-input tol 1.0E-1 instead of 2.0E-7; two UNCERTAINTY_MEASURE_WITH_UNIT; two EDGE_CURVEs; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N003'),'2;1');
5FILE_NAME('N003.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('pa0',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('pa1_shared',(10.0,0.0,0.0));
11#3=CARTESIAN_POINT('pb1',(20.0,0.0,0.0));
12#4=VERTEX_POINT('va0_precise',#1);
13#5=VERTEX_POINT('va1_shared_worst_tol',#2);
14#6=VERTEX_POINT('vb1',#3);
15#7=DIRECTION('',(1.0,0.0,0.0));
16#8=VECTOR('',#7,10.0);
17#9=LINE('',#1,#8);
18#10=EDGE_CURVE('eA_face1',#4,#5,#9,.T.);
19#11=DIRECTION('',(1.0,0.0,0.0));
20#12=VECTOR('',#11,10.0);
21#13=LINE('',#2,#12);
22#14=EDGE_CURVE('eB_face2',#5,#6,#13,.T.);
23#15=GEOMETRIC_CURVE_SET('merged',(#10,#14));
24#16=APPLICATION_CONTEXT('automotive_design');
25#17=PRODUCT_CONTEXT('',#16,'mechanical');
26#18=PRODUCT('N003','N003','',(#17));
27#19=PRODUCT_DEFINITION_FORMATION('','',#18);
28#20=PRODUCT_DEFINITION_CONTEXT('part definition',#16,'design');
29#21=PRODUCT_DEFINITION('','',#19,#20);
30#22=PRODUCT_DEFINITION_SHAPE('','',#21);
31#23=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
32#24=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
33#25=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
34#26=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(2.0E-7),#23,'distance_accuracy_value','pre_merge_precise_vertex_tol');
35#27=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-1),#23,'distance_accuracy_value','merge_adopted_worst_vertex_tol');
36#28=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#26,#27))GLOBAL_UNIT_ASSIGNED_CONTEXT((#23,#24,#25))REPRESENTATION_CONTEXT('ctx','3D'));
37#29=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#15),#28);
38#30=SHAPE_DEFINITION_REPRESENTATION(#22,#29);
39ENDSEC;
40END-ISO-10303-21;