Tfa062 — Face silently accepted despite null/unresolvable inner-wire bound during face fix

§12.3c faces/sewing

P2 — spec deviation (no data loss)

silent-loss topology

Sources

Description

An `ADVANCED_FACE` lists a `FACE_BOUND` with a null / unresolvable wire reference. The face-fix routine, when iterating bounds, dereferences the null wire and segfaults instead of skipping or rejecting.

Reproducer recipe

`ADVANCED_FACE('',(#100,$),#10,.T.);` where the second bound is the literal `$` (omitted), or where it points to a non-existent entity ID.

Expected kernel behavior

bounds list with null/missing entries must be rejected with diagnostic before any geometric computation; never dereference a null bound.

Notes

Cross-oracle: pure-Python Part-21 validator rejects (reject(E_UNRESOLVED_REFS)); OCCT silently accepts and loads a shape. OCC auto-heals a spec-level violation.

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/* Tfa062: ADVANCED_FACE with inner FACE_BOUND referencing undefined EDGE_LOOP entity #777 */
3HEADER;
4FILE_DESCRIPTION(('Tfa062'),'2;1');
5FILE_NAME('Tfa062.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(10.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(10.0,10.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,10.0,0.0));
14#5=VERTEX_POINT('',#1);
15#6=VERTEX_POINT('',#2);
16#7=VERTEX_POINT('',#3);
17#8=VERTEX_POINT('',#4);
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=VECTOR('',#9,10.0);
20#11=LINE('',#1,#10);
21#12=EDGE_CURVE('',#5,#6,#11,.T.);
22#13=ORIENTED_EDGE('',$,$,#12,.T.);
23#14=DIRECTION('',(0.0,1.0,0.0));
24#15=VECTOR('',#14,10.0);
25#16=LINE('',#2,#15);
26#17=EDGE_CURVE('',#6,#7,#16,.T.);
27#18=ORIENTED_EDGE('',$,$,#17,.T.);
28#19=DIRECTION('',(-1.0,0.0,0.0));
29#20=VECTOR('',#19,10.0);
30#21=LINE('',#3,#20);
31#22=EDGE_CURVE('',#7,#8,#21,.T.);
32#23=ORIENTED_EDGE('',$,$,#22,.T.);
33#24=DIRECTION('',(0.0,-1.0,0.0));
34#25=VECTOR('',#24,10.0);
35#26=LINE('',#4,#25);
36#27=EDGE_CURVE('',#8,#5,#26,.T.);
37#28=ORIENTED_EDGE('',$,$,#27,.T.);
38#29=EDGE_LOOP('',(#13,#18,#23,#28));
39#30=FACE_OUTER_BOUND('',#29,.T.);
40#31=FACE_BOUND('bad_inner_bound',#777,.T.);
41#32=CARTESIAN_POINT('',(0.0,0.0,0.0));
42#33=DIRECTION('',(0.0,0.0,1.0));
43#34=DIRECTION('',(1.0,0.0,0.0));
44#35=AXIS2_PLACEMENT_3D('',#32,#33,#34);
45#36=PLANE('',#35);
46#37=ADVANCED_FACE('',(#30,#31),#36,.T.);
47#38=OPEN_SHELL('',(#37));
48#39=SHELL_BASED_SURFACE_MODEL('',(#38));
49#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
50#9051=PRODUCT('Tfa062','Tfa062','',(#9050));
51#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
52#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
53#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
54#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
55#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
56#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
57#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
58#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
59#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
60#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#39),#9060);
61#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
62ENDSEC;
63END-ISO-10303-21;