Tfa252 — EDGE_CURVE null edge_geometry ($) wired into a live, reachable face

§12.3c faces (sub-class: `stp-missing-geometry-definition` GAP)

topology

Sources

Description

A 10×10 `PLANE` face's `FACE_OUTER_BOUND` has 4 edges; edge[2] is `EDGE_CURVE('null_geom_edge',#V2,#V3,$,.T.)` — its `edge_geometry` slot is null (`$`), not absent from the file and not orphaned in a dead entity. The other 3 edges are ordinary `LINE`-based `EDGE_CURVE`s. The reader hits the null curve reference and fails cleanly for that one edge (logged, not crashed); the wire builder cannot assemble a valid closed 4-edge wire with one edge missing, so it drops the whole bound. The face survives translation as a genuinely unbounded natural-surface fallback rather than aborting the whole read or fabricating geometry.

Reproducer recipe

`EDGE_CURVE('null_geom_edge',#v2,#v3,$,.T.)` wired into an `EDGE_LOOP` that is the sole `FACE_OUTER_BOUND` of a live `ADVANCED_FACE`, itself referenced by a real `OPEN_SHELL`/`SHELL_BASED_SURFACE_MODEL` (not a `GEOMETRIC_CURVE_SET`, not a dead trailing entity).

Expected kernel behavior

detect the null `edge_geometry` reference and fail cleanly for that one edge (diagnostic logged); either drop just the malformed bound (this fixture's observed OCCT behavior) or reject the whole face with a clear per-entity diagnostic — never crash and never silently fabricate a curve.

Notes

**See also**: Xp008 (face-hosted null-geometry pattern, but unreachable — dead trailing entity), Tfa003 (GEOMETRIC_CURVE_SET-hosted, type-skipped before reaching this code path). Live-verified (this worktree's OCP/OCCT 7.8.1, default import path, both heal-on/heal-off): shape(1)/shape(1), the one `ADVANCED_FACE` survives with its bound fully dropped — `n_edges_total==0`, `n_vertices_total==0` — and `face[0].area` comes back as an unbounded-surface sentinel (~8e100), OCCT's signature for "face_geometry present, bound list effectively empty" (matches the natural-unbounded-face fallback — a clean per-entity fail, not silent garbage). Synonyms: "EDGE_CURVE null edge_geometry", "missing geometry definition clean fail", "TranslateEdge null curve", "edge_geometry dollar sign null", "reader per-entity clean fail on live face".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Xp008, Tfa003

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tfa252: OPEN_SHELL: single ADVANCED_FACE on a 10x10 PLANE; outer wire has 4 edges, edge[2] is EDGE_CURVE('null_geom_edge',#V2,#V3,$,.T.) -- edge_geometry is null ($), not a GEOMETRIC_CURVE_SET orphan and not a dead trailing entity; StepToTopoDS_TranslateEdge::Init hits the null curve and fails cleanly for that one edge; wire translation drops the whole bound and the face survives as an unbounded natural-surface fallback (edge_count==0), not a crash; defect IS on live OPEN_SHELL traversal path */
3HEADER;
4FILE_DESCRIPTION(('Tfa252'),'2;1');
5FILE_NAME('Tfa252.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=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=PLANE('',#4);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(10.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(10.0,10.0,0.0));
18#9=CARTESIAN_POINT('',(0.0,10.0,0.0));
19#10=VERTEX_POINT('',#6);
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=VERTEX_POINT('',#9);
23#14=DIRECTION('',(1.0,0.0,0.0));
24#15=VECTOR('',#14,10.0);
25#16=LINE('',#6,#15);
26#17=EDGE_CURVE('',#10,#11,#16,.T.);
27#18=DIRECTION('',(0.0,1.0,0.0));
28#19=VECTOR('',#18,10.0);
29#20=LINE('',#7,#19);
30#21=EDGE_CURVE('',#11,#12,#20,.T.);
31#22=EDGE_CURVE('null_geom_edge',#12,#13,$,.T.);
32#23=DIRECTION('',(0.0,-1.0,0.0));
33#24=VECTOR('',#23,10.0);
34#25=LINE('',#9,#24);
35#26=EDGE_CURVE('',#13,#10,#25,.T.);
36#27=ORIENTED_EDGE('',$,$,#17,.T.);
37#28=ORIENTED_EDGE('',$,$,#21,.T.);
38#29=ORIENTED_EDGE('',$,$,#22,.T.);
39#30=ORIENTED_EDGE('',$,$,#26,.T.);
40#31=EDGE_LOOP('',(#27,#28,#29,#30));
41#32=FACE_OUTER_BOUND('',#31,.T.);
42#33=ADVANCED_FACE('',(#32),#5,.T.);
43#34=OPEN_SHELL('',(#33));
44#35=SHELL_BASED_SURFACE_MODEL('',(#34));
45#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
46#9051=PRODUCT('Tfa252','Tfa252','',(#9050));
47#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
48#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
49#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
50#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
51#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
52#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
53#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
54#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
55#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
56#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#35),#9060);
57#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
58ENDSEC;
59END-ISO-10303-21;