Tsh053 — Merging coplanar adjacent faces fails with construction error on shape with empty edge loop

§12.3a shells/orientation

P1 — silent data loss

crash topology

Sources

Description

A shape on which adjacent same-surface faces are being merged has a face whose wire references zero edges (empty edge list inside `EDGE_LOOP`). The merge algorithm hits an internal precondition that requires at least one edge per loop and raises a construction error, aborting the entire merge operation.

Reproducer recipe

A face with a `FACE_OUTER_BOUND` whose `EDGE_LOOP` is empty (`EDGE_LOOP('',())`); fed to face unification.

Expected kernel behavior

same-surface face-merge must validate input topology before running; faces with empty edge loops are skipped or the entire shape is rejected with a clear diagnostic, not a low-level construction error.

Notes

**See also**: Tsh023. Synonyms: "face merge crashes on empty edge loop", "construction error during unification", "merge aborts on face with no edges", "low-level error from face unifier on empty wire", "empty wire fails precondition during merge".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Tsh023

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh053: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with empty edge list EDGE_LOOP('',()); empty EDGE_LOOP IS wired into face boundary topology; merge step must validate input before running; construction error raised when merge walker finds zero edges to iterate */
3HEADER;
4FILE_DESCRIPTION(('Tsh053'),'2;1');
5FILE_NAME('Tsh053.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=EDGE_LOOP('',());
16#7=FACE_OUTER_BOUND('',#6,.T.);
17#8=ADVANCED_FACE('',(#7),#5,.T.);
18#9=OPEN_SHELL('',(#8));
19#10=SHELL_BASED_SURFACE_MODEL('',(#9));
20#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
21#9051=PRODUCT('Tsh053','Tsh053','',(#9050));
22#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
23#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
24#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
25#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
26#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
27#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
28#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
29#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
30#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
31#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#10),#9060);
32#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
33ENDSEC;
34END-ISO-10303-21;