Twi079 — Internal hole wire whose enclosed area is below threshold

§12.3b wires / loops / edges (sub-class: hole removal)

P0 — receiver crash / hang / OOM

crash topology

Sources

Description

A face has one or more inner FACE_BOUND wires whose enclosed area is below a caller-specified minimum. The hole is sub-feature: a manufacturing artifact, sliver-cut residue, or import precision noise. Removing the wire enlarges the face's effective area.

Reproducer recipe

A square face with a tiny inner triangle hole of area 5e-7 mm² (vertices within 1e-3 of each other).

Expected kernel behavior

Heal and accept: detect inner wires below the threshold, repair by removing them, and re-validate / normalize the face's outer-bound topology. The threshold is caller policy.

Notes

Search terms: "remove tiny holes", "sub-feature holes", "hole sliver". Synonyms: "tiny inner wire enclosing tiny area", "sub-tolerance hole on face", "spurious tiny inner wire", "hole sliver from boolean residue", "FACE_INNER_BOUND with negligible enclosed area".

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Closure intent

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

Byte 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/* Twi079 - Internal hole wire whose enclosed area is below threshold
3 * Square outer face 10x10 on a PLANE; inner FACE_INNER_BOUND is a tiny
4 * triangle near the centre with vertices (5.0, 5.0), (5.001, 5.0),
5 * (5.0, 5.001) -- enclosed area ~= 5.0e-7 mm^2, well below any feature
6 * threshold. RemoveInternalWires must classify and drop it. */
7HEADER;
8FILE_DESCRIPTION(('Twi079 test case','Square face with sub-threshold inner triangle hole'),'2;1');
9FILE_NAME('Twi079.stp','2026-04-30T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
11ENDSEC;
12DATA;
13#1=APPLICATION_CONTEXT('automotive_design');
14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
15#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#11=DIRECTION('',(0.0,0.0,1.0));
17#12=DIRECTION('',(1.0,0.0,0.0));
18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
19#14=PLANE('',#13);
20/* outer 10x10 square */
21#20=CARTESIAN_POINT('',(0.0,0.0,0.0));#21=VERTEX_POINT('',#20);
22#22=CARTESIAN_POINT('',(10.0,0.0,0.0));#23=VERTEX_POINT('',#22);
23#24=CARTESIAN_POINT('',(10.0,10.0,0.0));#25=VERTEX_POINT('',#24);
24#26=CARTESIAN_POINT('',(0.0,10.0,0.0));#27=VERTEX_POINT('',#26);
25#30=DIRECTION('',(1.0,0.0,0.0));#31=VECTOR('',#30,1.0);#32=LINE('',#20,#31);
26#33=EDGE_CURVE('',#21,#23,#32,.T.);
27#34=DIRECTION('',(0.0,1.0,0.0));#35=VECTOR('',#34,1.0);#36=LINE('',#22,#35);
28#37=EDGE_CURVE('',#23,#25,#36,.T.);
29#38=DIRECTION('',(-1.0,0.0,0.0));#39=VECTOR('',#38,1.0);#40=LINE('',#24,#39);
30#41=EDGE_CURVE('',#25,#27,#40,.T.);
31#42=DIRECTION('',(0.0,-1.0,0.0));#43=VECTOR('',#42,1.0);#44=LINE('',#26,#43);
32#45=EDGE_CURVE('',#27,#21,#44,.T.);
33#50=ORIENTED_EDGE('',*,*,#33,.T.);
34#51=ORIENTED_EDGE('',*,*,#37,.T.);
35#52=ORIENTED_EDGE('',*,*,#41,.T.);
36#53=ORIENTED_EDGE('',*,*,#45,.T.);
37#54=EDGE_LOOP('outer_10x10',(#50,#51,#52,#53));
38#55=FACE_OUTER_BOUND('outer',#54,.T.);
39/* tiny inner triangle, area ~= 5.0e-7 mm^2 */
40#60=CARTESIAN_POINT('',(5.0,5.0,0.0));#61=VERTEX_POINT('Ia',#60);
41#62=CARTESIAN_POINT('',(5.001,5.0,0.0));#63=VERTEX_POINT('Ib',#62);
42#64=CARTESIAN_POINT('',(5.0,5.001,0.0));#65=VERTEX_POINT('Ic',#64);
43#66=DIRECTION('',(1.0,0.0,0.0));#67=VECTOR('',#66,1.0);#68=LINE('',#60,#67);
44#69=EDGE_CURVE('',#61,#63,#68,.T.);
45#70=DIRECTION('',(-0.7071067811865475,0.7071067811865475,0.0));#71=VECTOR('',#70,1.4142);#72=LINE('',#62,#71);
46#73=EDGE_CURVE('',#63,#65,#72,.T.);
47#74=DIRECTION('',(0.0,-1.0,0.0));#75=VECTOR('',#74,1.0);#76=LINE('',#64,#75);
48#77=EDGE_CURVE('',#65,#61,#76,.T.);
49#80=ORIENTED_EDGE('',*,*,#69,.T.);
50#81=ORIENTED_EDGE('',*,*,#73,.T.);
51#82=ORIENTED_EDGE('',*,*,#77,.T.);
52#83=EDGE_LOOP('inner_subthreshold_tri',(#80,#81,#82));
53#84=FACE_INNER_BOUND('inner_area_5e-7',#83,.T.);
54#90=ADVANCED_FACE('square_with_tiny_hole',(#55,#84),#14,.T.);
55/* Wrap: minimal PRODUCT chain so OCCT TransferRoots produces a shape. */
56#9000=PRODUCT_CONTEXT('',#1,'mechanical');
57#9001=PRODUCT('Twi079','Twi079','',(#9000));
58#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
59#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
60#9004=PRODUCT_DEFINITION('','',#9002,#9003);
61#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
62#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
63#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
64#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
65#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
66#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
67#9020=OPEN_SHELL('wrap_shell',(#90));
68#9021=SHELL_BASED_SURFACE_MODEL('wrap_sbsm',(#9020));
69#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
70#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
71ENDSEC;
72END-ISO-10303-21;