Tb005 — Face area sub-tolerance squared (`tol*tol` threshold defect)

§12.4 (sub-class: comparison-threshold mismatch)

P1 — silent data loss

spec-violation

Sources

Description

Many kernel algorithms compare *areas* to `tol*tol` rather than `tol`. A planar face with side length 3e-4 mm has area 9e-8 mm². The file declares `tol = 1e-4`; a kernel that filters degenerate faces with `area < tol*tol = 1e-8` keeps it. If the kernel later uses `tol = 1e-3` (for example, after a heal that bumped tolerance), the threshold becomes `tol*tol = 1e-6`, and the face is now sub-threshold and silently dropped. A face that survives one Boolean pass disappears in the next.

Reproducer recipe

A small planar `ADVANCED_FACE` (3e-4 × 3e-4 mm) on a `PLANE`, wrapped in a closed shell so OCCT can transfer; declared uncertainty 1e-4. Wrap in PRODUCT chain so tier-3 can compute area.

Expected kernel behavior

face-area thresholds should be derived from a documented invariant (e.g. minimum-feature-size) rather than `tol*tol`; a face that is non-degenerate at one tolerance must remain non-degenerate at any other tolerance within the operating range. Silent drop of an "infinitesimal" face is unacceptable; reject loudly or preserve the face.

Notes

Searchable as "face disappeared after Boolean", "small feature. Synonyms: "small-face check uses tol*tol instead of tol", "kernel compares area to squared tolerance", "linear feature dropped under squared comparison", "face area threshold inconsistent with linear tolerance". silently removed", "ShapeFix dropped my face".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tb005: ADVANCED_FACE 0.0003x0.0003 mm square (area=9.0e-08 mm²) on PLANE; declared tolerance 1.0E-4 mm; area < (1e-3)^2 = 1e-6 triggers silent drop under a bumped-tolerance kernel; alive at (1e-4)^2 = 1e-8 threshold; face-area comparison should use documented tol not tol*tol */
3HEADER;
4FILE_DESCRIPTION(('Tb005'),'2;1');
5FILE_NAME('Tb005.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('',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('',(0.0003,0.0,0.0));
11#3=CARTESIAN_POINT('',(0.0003,0.0003,0.0));
12#4=CARTESIAN_POINT('',(0.0,0.0003,0.0));
13#5=VERTEX_POINT('',#1);
14#6=VERTEX_POINT('',#2);
15#7=VERTEX_POINT('',#3);
16#8=VERTEX_POINT('',#4);
17#9=DIRECTION('',(1.0,0.0,0.0));
18#10=VECTOR('',#9,0.0003);
19#11=LINE('',#1,#10);
20#12=EDGE_CURVE('e_bot',#5,#6,#11,.T.);
21#13=DIRECTION('',(0.0,1.0,0.0));
22#14=VECTOR('',#13,0.0003);
23#15=LINE('',#2,#14);
24#16=EDGE_CURVE('e_rgt',#6,#7,#15,.T.);
25#17=DIRECTION('',(1.0,0.0,0.0));
26#18=VECTOR('',#17,0.0003);
27#19=LINE('',#4,#18);
28#20=EDGE_CURVE('e_top',#8,#7,#19,.T.);
29#21=DIRECTION('',(0.0,1.0,0.0));
30#22=VECTOR('',#21,0.0003);
31#23=LINE('',#1,#22);
32#24=EDGE_CURVE('e_lft',#5,#8,#23,.T.);
33#25=ORIENTED_EDGE('',$,$,#12,.T.);
34#26=ORIENTED_EDGE('',$,$,#16,.T.);
35#27=ORIENTED_EDGE('',$,$,#20,.F.);
36#28=ORIENTED_EDGE('',$,$,#24,.F.);
37#29=EDGE_LOOP('',(#25,#26,#27,#28));
38#30=CARTESIAN_POINT('',(0.0,0.0,0.0));
39#31=DIRECTION('',(0.0,0.0,1.0));
40#32=DIRECTION('',(1.0,0.0,0.0));
41#33=AXIS2_PLACEMENT_3D('',#30,#31,#32);
42#34=PLANE('',#33);
43#35=FACE_OUTER_BOUND('',#29,.T.);
44#36=ADVANCED_FACE('',(#35),#34,.T.);
45#37=OPEN_SHELL('',(#36));
46#38=SHELL_BASED_SURFACE_MODEL('',(#37));
47#39=APPLICATION_CONTEXT('automotive_design');
48#40=PRODUCT_CONTEXT('',#39,'mechanical');
49#41=PRODUCT('Tb005','Tb005','',(#40));
50#42=PRODUCT_DEFINITION_FORMATION('','',#41);
51#43=PRODUCT_DEFINITION_CONTEXT('part definition',#39,'design');
52#44=PRODUCT_DEFINITION('','',#42,#43);
53#45=PRODUCT_DEFINITION_SHAPE('','',#44);
54#46=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
55#47=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
56#48=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
57#49=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-4),#46,'distance_accuracy_value','face_area_tol_squared_threshold');
58#50=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#49))GLOBAL_UNIT_ASSIGNED_CONTEXT((#46,#47,#48))REPRESENTATION_CONTEXT('ctx','3D'));
59#51=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#38),#50);
60#52=SHAPE_DEFINITION_REPRESENTATION(#45,#51);
61ENDSEC;
62END-ISO-10303-21;