Hea016 — Empty solid output from STEP export of complex body, despite STL succeeding

§12.3c faces / shape healing

P1 — silent data loss

topology

Sources

Sender

FreeCAD writer pipeline where the STL/3MF tessellator succeeds but the STEP B-rep emitter encounters a face it cannot represent in B-rep form.

Description

A body that exports cleanly to STL/3MF emits a STEP file that imports as zero objects. The producer's writer reaches a face whose underlying surface is a degenerate `B_SPLINE_SURFACE_WITH_KNOTS` (collapsed control-point net producing a zero-area surface), silently skips the face, and the resulting open shell is wrapped as `MANIFOLD_SOLID_BREP` whose underlying topology has zero closed shells; the receiver's shape-healer cannot recover any solid.

Reproducer recipe

STEP file with one `MANIFOLD_SOLID_BREP` whose `CLOSED_SHELL` references zero `ADVANCED_FACE`s — an empty shell wrapped as a solid.

Expected kernel behavior

writer rejects empty-shell wrap before emission; receivers must reject `CLOSED_SHELL` with no faces with a clear diagnostic.

Notes

**See also**: A074. Synonyms: "STEP empty object despite STL working", "writer drops degenerate face and emits empty shell", "zero-face CLOSED_SHELL", "step export silently empty".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

A074

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Hea016: MANIFOLD_SOLID_BREP wrapping a CLOSED_SHELL with ZERO ADVANCED_FACEs; writer silently skipped degenerate face(s), leaving empty shell; receiver's shape-healer cannot recover solid from zero-face closed shell; FreeCAD #20396: writer must reject empty-shell wrap before emission; defect: CLOSED_SHELL() with empty face list */
3HEADER;
4FILE_DESCRIPTION(('Hea016'),'2;1');
5FILE_NAME('Hea016.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=CLOSED_SHELL('empty_shell',(  ));
15#6=MANIFOLD_SOLID_BREP('Hea016_body',#5);
16#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
17#9051=PRODUCT('Hea016','Hea016','',(#9050));
18#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
19#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
20#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
21#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
22#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
23#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
24#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
25#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
26#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
27#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#6),#9060);
28#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
29ENDSEC;
30END-ISO-10303-21;