Twi006 — ORIENTED_EDGE underlying EDGE_CURVE is null/missing reference

§12.3b wire-loop

topology

Sources

Description

`ORIENTED_EDGE` whose `edge_element` slot is `*` or null reference (or unresolved id), or — conversely — derived attributes `edge_start`/`edge_end` filled with explicit vertices instead of `*`.

Reproducer recipe

`ORIENTED_EDGE('',*,*,$,.T.)` or `ORIENTED_EDGE('',#v1,#v2,#180,.F.)` (deriveds non-`*`).

Expected kernel behavior

Heal and accept: normalize / tolerate either form on read; coerce derived attributes to `*` on write per Part-21 §6.4.4.

Notes

Mantis 0029979 also covers null EDGE_CURVE. **See also**: Twi004, Twi005. Synonyms: "edge has null curve reference", "blank edge geometry slot", "edge with dollar-sign placeholder", "derived edge attributes filled instead of star", "edge slot holds null pointer".

Expected validation

occt=shape(1)/shape(1) gmsh=reject 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

Cross-references

Twi004, Twi005

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi006: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with two ORIENTED_EDGEs; the first ORIENTED_EDGE has edge_element = $ (null/missing reference); the second is a valid half-circle EDGE_CURVE so the loop parses; null edge_element IS the defect; kernel must normalize/tolerate on read; must coerce derived attributes to * on write per Part-21 §6.4.4 */
3HEADER;
4FILE_DESCRIPTION(('Twi006'),'2;1');
5FILE_NAME('Twi006.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=DIRECTION('',(0.0,0.0,1.0));
17#8=DIRECTION('',(1.0,0.0,0.0));
18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8);
19#10=CIRCLE('',#9,1.0);
20#11=CARTESIAN_POINT('',(1.0,0.0,0.0));
21#12=CARTESIAN_POINT('',(-1.0,0.0,0.0));
22#13=VERTEX_POINT('',#11);
23#14=VERTEX_POINT('',#12);
24#15=EDGE_CURVE('',#13,#14,#10,.T.);
25#16=ORIENTED_EDGE('',*,*,$,.T.);
26#17=ORIENTED_EDGE('',*,*,#15,.T.);
27#18=EDGE_LOOP('',(#16,#17));
28#19=FACE_OUTER_BOUND('',#18,.T.);
29#20=ADVANCED_FACE('',(#19),#5,.T.);
30#21=OPEN_SHELL('',(#20));
31#22=SHELL_BASED_SURFACE_MODEL('',(#21));
32#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
33#9051=PRODUCT('Twi006','Twi006','',(#9050));
34#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
35#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
36#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
37#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
38#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
39#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
40#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
41#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
42#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
43#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#22),#9060);
44#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
45ENDSEC;
46END-ISO-10303-21;