Twi005 — ORIENTED_EDGE.edge_element references non-EDGE_CURVE

§12.3b wire-loop

P1 — silent data loss

crash topology

Sources

Description

`ORIENTED_EDGE.edge_element` resolves to something other than `EDGE_CURVE` (e.g. `VERTEX_POINT`, an unrelated geometric_representation_item, or unresolved id). Dereferencing assumes EDGE_CURVE and crashes.

Reproducer recipe

`ORIENTED_EDGE('',*,*,#5,.T.);` where `#5` is a `VERTEX_POINT` or `GEOMETRIC_CURVE_SET`.

Expected kernel behavior

skip the oriented-edge with warning; continue translation of remaining edges.

Notes

The translator's edge-loop transfer pass must validate the dereferenced entity's type before treating it as an `EDGE_CURVE`. Live-verified (this worktree's OCCT 7.8.1, heal-on/heal-off identical): the fixture loads cleanly as `shape(1)/shape(1)`, `load == "ok"` — neither the originally-cited crash nor an empty/silent-drop result reproduces; the receiver silently skips the bad oriented-edge and still delivers a shape. **See also**: Twi004, Twi006. Synonyms: "edge points at vertex instead of curve", "wrong entity type behind ORIENTED_EDGE", "edge dereferences to non-curve", "type confusion in edge reference", "edge slot holds geometric set not curve".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Twi004, Twi006

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi005: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP whose ORIENTED_EDGE has edge_element pointing at a VERTEX_POINT (not an EDGE_CURVE); no EDGE_CURVE entity is present in the file; kernel must validate entity type before dereference; must skip bad oriented-edge with warning; must not crash */
3HEADER;
4FILE_DESCRIPTION(('Twi005'),'2;1');
5FILE_NAME('Twi005.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('',(1.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=ORIENTED_EDGE('',*,*,#7,.T.);
18#9=EDGE_LOOP('',(#8));
19#10=FACE_OUTER_BOUND('',#9,.T.);
20#11=ADVANCED_FACE('',(#10),#5,.T.);
21#12=OPEN_SHELL('',(#11));
22#13=SHELL_BASED_SURFACE_MODEL('',(#12));
23#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
24#9051=PRODUCT('Twi005','Twi005','',(#9050));
25#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
26#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
27#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
28#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
29#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
30#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
31#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
32#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
33#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
34#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#13),#9060);
35#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
36ENDSEC;
37END-ISO-10303-21;