Tsh093 — ShapeFix_Shell.Perform empty-output handling

§12.3a

topology

Sources

Description

ShapeFix_Shell.Perform empty-output handling

Reproducer recipe

Expected kernel behavior

Both of the shell's faces have EDGE_CURVEs whose start and end VERTEX_POINT are identical, so every edge is zero length and both faces are degenerate. A fixer that rejects every face for this reason must not return a silent, unflagged empty shell: an empty OPEN_SHELL that results from rejecting all input faces is indistinguishable from a legitimately empty part unless the rejection is reported explicitly, so surface an error or diagnostic naming the rejected face count rather than succeeding quietly on zero faces.

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh093: OPEN_SHELL with 2 ADVANCED_FACEs each wired with zero-length EDGE_CURVEs; each EDGE_CURVE has same VERTEX_POINT for start and end — IS the degenerate-edge mechanism; LINE direction vector magnitude 0.0 IS directly in the edge topology; all faces carry zero-length-edge defect — all rejected by ShapeFix_Shell.Perform; all-faces-rejected outcome IS the mechanism exposing silent empty-shell return; ShapeFix_Shell.Perform returns empty shell with no diagnostic flag set; fix: set error flag / raise when output shell is empty after Perform; emit E_SHELL_PERFORM_EMPTY_OUTPUT when all faces are rejected */
3HEADER;
4FILE_DESCRIPTION(('Tsh093'),'2;1');
5FILE_NAME('Tsh093.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=VERTEX_POINT('',#1);
12#3=DIRECTION('',(0.0,0.0,0.0));
13#4=VECTOR('',#3,0.0);
14#5=LINE('',#1,#4);
15#6=EDGE_CURVE('',#2,#2,#5,.T.);
16#7=EDGE_CURVE('',#2,#2,#5,.T.);
17#8=EDGE_CURVE('',#2,#2,#5,.T.);
18#9=EDGE_CURVE('',#2,#2,#5,.T.);
19#10=ORIENTED_EDGE('',$,$,#6,.T.);
20#11=ORIENTED_EDGE('',$,$,#7,.T.);
21#12=ORIENTED_EDGE('',$,$,#8,.T.);
22#13=ORIENTED_EDGE('',$,$,#9,.T.);
23#14=EDGE_LOOP('',(#10,#11,#12,#13));
24#15=DIRECTION('',(0.0,0.0,1.0));
25#16=DIRECTION('',(1.0,0.0,0.0));
26#17=AXIS2_PLACEMENT_3D('',#1,#15,#16);
27#18=PLANE('',#17);
28#19=FACE_OUTER_BOUND('',#14,.T.);
29#20=ADVANCED_FACE('',(#19),#18,.T.);
30#21=CARTESIAN_POINT('',(5.0,0.0,0.0));
31#22=VERTEX_POINT('',#21);
32#23=DIRECTION('',(0.0,0.0,0.0));
33#24=VECTOR('',#23,0.0);
34#25=LINE('',#21,#24);
35#26=EDGE_CURVE('',#22,#22,#25,.T.);
36#27=EDGE_CURVE('',#22,#22,#25,.T.);
37#28=EDGE_CURVE('',#22,#22,#25,.T.);
38#29=EDGE_CURVE('',#22,#22,#25,.T.);
39#30=ORIENTED_EDGE('',$,$,#26,.T.);
40#31=ORIENTED_EDGE('',$,$,#27,.T.);
41#32=ORIENTED_EDGE('',$,$,#28,.T.);
42#33=ORIENTED_EDGE('',$,$,#29,.T.);
43#34=EDGE_LOOP('',(#30,#31,#32,#33));
44#35=DIRECTION('',(0.0,0.0,1.0));
45#36=DIRECTION('',(1.0,0.0,0.0));
46#37=AXIS2_PLACEMENT_3D('',#21,#35,#36);
47#38=PLANE('',#37);
48#39=FACE_OUTER_BOUND('',#34,.T.);
49#40=ADVANCED_FACE('',(#39),#38,.T.);
50#41=OPEN_SHELL('',(#20,#40));
51#42=SHELL_BASED_SURFACE_MODEL('',(#41));
52#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
53#9051=PRODUCT('Tsh093','Tsh093','',(#9050));
54#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
55#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
56#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
57#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
58#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
59#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
60#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
61#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
62#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
63#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#42),#9060);
64#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
65ENDSEC;
66END-ISO-10303-21;