Twi004 — ORIENTED_EDGE wrapping another ORIENTED_EDGE

§12.3b wire-loop

crash topology

Sources

Description

An `ORIENTED_EDGE` whose `edge_element` is itself an `ORIENTED_EDGE` instead of an `EDGE_CURVE`. Technically illegal but observed in the wild.

Reproducer recipe

`#1=ORIENTED_EDGE('',*,*,#2,.T.); #2=ORIENTED_EDGE(..,#3,.T.); #3=EDGE_CURVE(..);`

Expected kernel behavior

heal-by-traversal; chase ORIENTED_EDGE chains until an EDGE_CURVE is found, composing the orientation flags; never crash.

Notes

The translator's edge-loop transfer pass must chase wrapper chains until it finds the underlying `EDGE_CURVE`, composing orientation flags as it descends. Validation observed: silent-empty rather than a crash. Without a PRODUCT chain the transfer never invokes the edge-loop translator; with a wrap chain the receiver silently heals (chases the wrapper). The kernel-mishandling-by-silent-acceptance still demonstrates the defect class; the bare reader's malformed-reference handling is not exercised at fixture scale. **See also**: Twi005, Twi006. Synonyms: "edge wraps another edge instead of curve", "double-wrapped edge reference", "ORIENTED_EDGE points at another ORIENTED_EDGE", "indirect edge reference chain", "wrapper chain in edge topology".

Expected validation

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

Twi005, Twi006

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi004: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP whose single ORIENTED_EDGE has edge_element pointing at another ORIENTED_EDGE (not an EDGE_CURVE); the inner ORIENTED_EDGE wraps a proper EDGE_CURVE for a full-circle ellipse; translator must chase wrapper chain, composing orientation flags; never crash on double-wrapped ORIENTED_EDGE reference */
3HEADER;
4FILE_DESCRIPTION(('Twi004'),'2;1');
5FILE_NAME('Twi004.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=VERTEX_POINT('',#11);
22#13=EDGE_CURVE('',#12,#12,#10,.T.);
23#14=ORIENTED_EDGE('',*,*,#13,.T.);
24#15=ORIENTED_EDGE('',*,*,#14,.T.);
25#16=EDGE_LOOP('',(#15));
26#17=FACE_OUTER_BOUND('',#16,.T.);
27#18=ADVANCED_FACE('',(#17),#5,.T.);
28#19=OPEN_SHELL('',(#18));
29#20=SHELL_BASED_SURFACE_MODEL('',(#19));
30#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
31#9051=PRODUCT('Twi004','Twi004','',(#9050));
32#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
33#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
34#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
35#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
36#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
37#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
38#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
39#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
40#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
41#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#20),#9060);
42#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
43ENDSEC;
44END-ISO-10303-21;