step-examples/12-13-writer-pathology/Wr011.stp
Sources
- OCCT MANTIS#0027xxx-class
- bug-reporter language: "empty list, expected at least one face" (OCCT MANTIS tracker 502 as of 2026-05-02)
Sender
Writers that prune the model and forget to suppress now-empty container entities
Description
A `CLOSED_SHELL` entity with an empty face-list `()` appears in the file because the producer pruned all faces but left the shell wrapper. Schema requires the face-list to be non-empty. Some readers reject; some accept and produce a vacuous shell that flows through the rest of the import as an empty solid. Bug-reporter language: "empty shell", "STEP closed_shell with no faces", "writer left a stub entity".
Reproducer recipe
`CLOSED_SHELL('hollow',())` referenced by a `MANIFOLD_SOLID_BREP`.
Expected kernel behavior
reject the empty-shell case as schema-violating; do not silently accept the placeholder.
Notes
Strongly related to Wr020 (empty SHAPE_DEFINITION_REPRESENTATION chains). **OCC behavior**: silently accepts the empty face-list and produces a vacuous shell with no diagnostic; the kernel mishandling is the documented signal here.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CLOSED_SHELL') and matches(rb"CLOSED_SHELL\('[^']*',\(\)\)")matches(rb'CLOSED_SHELL\([^;]*\(\)\)') or matches(rb',\(\)\s*\)')
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Wr011: CLOSED_SHELL with empty face-list () violates schema */ 3HEADER; 4FILE_DESCRIPTION(('Wr011 - empty face list in CLOSED_SHELL'),'2;1'); 5FILE_NAME('Wr011.stp','2026-06-20T00:00:00',('auto-generated'),(''), 6 'auto-generated','',''); 7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 8ENDSEC; 9DATA; 10/* Defect: CLOSED_SHELL has an empty face-set (); schema requires >= 1 face */ 11/* Producer pruned all faces but did not suppress the shell entity */ 12#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 13#2=DIRECTION('zdir',(0.,0.,1.)); 14#3=DIRECTION('xdir',(1.,0.,0.)); 15#4=AXIS2_PLACEMENT_3D('placement',#1,#2,#3); 16/* Empty face-list â the defect */ 17#5=CLOSED_SHELL('hollow',()); 18#6=MANIFOLD_SOLID_BREP('empty-body',#5); 19#7=GEOMETRIC_CURVE_SET('placeholder',()); 20ENDSEC; 21END-ISO-10303-21;