Tsh258 — Closed OPEN_SHELL tetrahedron promoted to a genuine solid under non-manifold read mode (tier-3-confirmed, not just shape(N))

§12.3a shells (sub-class: step-reader shell-to-solid promotion — `stp-shell-to-solid-promotion`)

P3 — cosmetic / metadata-only

topology

Sources

Description

A topologically CLOSED tetrahedron — 4 vertices, 6 EDGE_CURVE entities each genuinely SHARED by exactly 2 of the 4 faces (unlike Tsh003, whose 4 faces each carry their own independently-duplicated edge entities with no cross-face entity sharing at all) — emitted as `OPEN_SHELL`/`SHELL_BASED_SURFACE_MODEL` (the wrong container for a solid, same "wrong-container" premise as Tsh003), alongside a second, unrelated open planar-face item (`second_item_face`, an ordinary un-closed 4-edge square), both listed as two items of one `NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION`.

Reproducer recipe

Tetrahedron with vertices `vtx_a/b/c/d`; six shared `EDGE_CURVE`s `e_ab,e_ac,e_ad,e_bc,e_bd,e_cd`, each referenced by exactly 2 of `face_abc/face_abd/face_acd/face_bcd` via correctly-paired forward/reversed `ORIENTED_EDGE`s; `OPEN_SHELL('tsh258_shell',(...4 faces...))` in `SHELL_BASED_SURFACE_MODEL('tsh258_sbsm',(...))`. Second item: `OPEN_SHELL('second_item_shell',(#109))` (one ordinary open square face) in its own `SHELL_BASED_SURFACE_MODEL`. Both listed together: `NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74,#111),#9060)`.

Expected kernel behavior

when non-manifold reading is active, after the per-item shapes are aggregated and healed, any resulting shell that is genuinely closed (every edge shared by exactly 2 faces) is automatically re-wrapped in a solid; a shell that is NOT closed (like the second item's lone open face) is left as a bare shell, unchanged.

Notes

**Empirical finding (live-verified, decisive, this worktree's OCP/OCCT 7.8.1) — supersedes the prior "unconfirmed" framing**: three variants were tested directly against the reader before arriving at this construction. (1) Tsh003's own literal geometry (independently-duplicated per-face edges, no entity sharing) — the shape's own closure query genuinely returns false regardless of settings (12 free edges, each used by only 1 face), so it can NEVER be promoted by ANY mechanism; Tsh003's `occt=shape(1)` was never actually a promoted solid, confirming the prior audit's suspicion. (2) A genuinely-shared-edge tetrahedron (this fixture's geometry) as the SOLE item of its `NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION` — the reader's single-item shortcut for a representation containing just one shape binds the PRE-reconstruction result directly, silently discarding the reconstructed/promoted compound entirely — the promotion runs internally but is invisible in the final transferred shape. (3) THIS fixture, with 2 items: the reconstructed compound (containing the promoted solid) is what's actually bound. Live-confirmed via a direct reader load with non-manifold reading enabled: the result is a compound containing exactly 1 solid (verified via an explicit shape-kind traversal) whose own face count is exactly 4 (a shape-traversal map on the solid), plus the second item's un-promoted open shell/face — decisive, per-item confirmation that specifically the closed tetrahedron (not the whole file) was promoted. With non-manifold reading at its default (off, this corpus's standard tier-3 harness setting), no non-manifold-specific processing occurs at all and the result is an ordinary compound of 2 shells / 5 faces, 0 solids — the Tier-3 fields below describe this DEFAULT read; the promotion is a supplementary, explicitly-enabled-mode finding (same convention as Tsh254/255/256/257 in this packet). Synonyms: "closed shell promoted to solid", "OPEN_SHELL closed tetrahedron becomes a genuine solid", "shell-to-solid reconstruction non-manifold mode", "wrong container type silently upgraded", "multi-item representation required to observe promotion". Provenance tier: bytes-sufficient.

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Tsh003, Tsh254

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh258: genuinely closed tetrahedron with SHARED (not independently-duplicated per
3   face, unlike Tsh003) EDGE_CURVE/VERTEX_POINT entities, emitted as OPEN_SHELL inside
4   SHELL_BASED_SURFACE_MODEL, alongside a second unrelated planar-face item, both wrapped
5   in one NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION; live-verified: with
6   read.step.nonmanifold=1 the reader promotes the closed tetrahedron shell to a genuine
7   TopoDS_SOLID (4-face) while the second item's open face stays a bare shell -- silent,
8   type-substituting promotion of a wrong-container closed shell into a solid */
9HEADER;
10FILE_DESCRIPTION(('Tsh258'),'2;1');
11FILE_NAME('Tsh258.stp','2026-07-13T00:00:00',(''),(''),'cad-research-suite','','');
12FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
13ENDSEC;
14DATA;
15#9000=APPLICATION_CONTEXT('mechanical design');
16#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#2=CARTESIAN_POINT('',(1.0,0.0,0.0));
18#3=CARTESIAN_POINT('',(0.5,0.866025403784,0.0));
19#4=CARTESIAN_POINT('',(0.5,0.288675134595,0.816496580928));
20#5=VERTEX_POINT('vtx_a',#1);
21#6=VERTEX_POINT('vtx_b',#2);
22#7=VERTEX_POINT('vtx_c',#3);
23#8=VERTEX_POINT('vtx_d',#4);
24/* six shared edges: each referenced by exactly 2 of the 4 faces below */
25#9=DIRECTION('',(1.0,0.0,0.0));
26#10=VECTOR('',#9,1.0);
27#11=LINE('',#1,#10);
28#12=EDGE_CURVE('e_ab',#5,#6,#11,.T.);
29#13=DIRECTION('',(0.5,0.866025403784,0.0));
30#14=VECTOR('',#13,1.0);
31#15=LINE('',#1,#14);
32#16=EDGE_CURVE('e_ac',#5,#7,#15,.T.);
33#17=DIRECTION('',(0.5,0.288675134595,0.816496580928));
34#18=VECTOR('',#17,1.0);
35#19=LINE('',#1,#18);
36#20=EDGE_CURVE('e_ad',#5,#8,#19,.T.);
37#21=DIRECTION('',(-0.5,0.866025403784,0.0));
38#22=VECTOR('',#21,1.0);
39#23=LINE('',#2,#22);
40#24=EDGE_CURVE('e_bc',#6,#7,#23,.T.);
41#25=DIRECTION('',(-0.5,0.288675134595,0.816496580928));
42#26=VECTOR('',#25,1.0);
43#27=LINE('',#2,#26);
44#28=EDGE_CURVE('e_bd',#6,#8,#27,.T.);
45#29=DIRECTION('',(0.0,-0.57735,0.816496580928));
46#30=VECTOR('',#29,1.0);
47#31=LINE('',#3,#30);
48#32=EDGE_CURVE('e_cd',#7,#8,#31,.T.);
49/* face ABC: A->B->C->A = AB(fwd), BC(fwd), AC(rev) */
50#33=ORIENTED_EDGE('',*,*,#12,.T.);
51#34=ORIENTED_EDGE('',*,*,#24,.T.);
52#35=ORIENTED_EDGE('',*,*,#16,.F.);
53#36=EDGE_LOOP('',(#33,#34,#35));
54#37=DIRECTION('',(0.0,0.0,-1.0));
55#38=DIRECTION('',(1.0,0.0,0.0));
56#39=AXIS2_PLACEMENT_3D('',#1,#37,#38);
57#40=PLANE('',#39);
58#41=FACE_OUTER_BOUND('',#36,.T.);
59#42=ADVANCED_FACE('face_abc',(#41),#40,.T.);
60/* face ABD: A->D->B->A = AD(fwd), BD(rev), AB(rev) */
61#43=ORIENTED_EDGE('',*,*,#20,.T.);
62#44=ORIENTED_EDGE('',*,*,#28,.F.);
63#45=ORIENTED_EDGE('',*,*,#12,.F.);
64#46=EDGE_LOOP('',(#43,#44,#45));
65#47=DIRECTION('',(0.0,-0.942809,0.333333));
66#48=DIRECTION('',(1.0,0.0,0.0));
67#49=AXIS2_PLACEMENT_3D('',#1,#47,#48);
68#50=PLANE('',#49);
69#51=FACE_OUTER_BOUND('',#46,.T.);
70#52=ADVANCED_FACE('face_abd',(#51),#50,.T.);
71/* face ACD: A->C->D->A = AC(fwd), CD(fwd), AD(rev) */
72#53=ORIENTED_EDGE('',*,*,#16,.T.);
73#54=ORIENTED_EDGE('',*,*,#32,.T.);
74#55=ORIENTED_EDGE('',*,*,#20,.F.);
75#56=EDGE_LOOP('',(#53,#54,#55));
76#57=DIRECTION('',(0.816497,0.471405,0.333333));
77#58=DIRECTION('',(-0.5,0.866025403784,0.0));
78#59=AXIS2_PLACEMENT_3D('',#2,#57,#58);
79#60=PLANE('',#59);
80#61=FACE_OUTER_BOUND('',#56,.T.);
81#62=ADVANCED_FACE('face_acd',(#61),#60,.T.);
82/* face BCD: B->D->C->B = BD(fwd), CD(rev), BC(rev) */
83#63=ORIENTED_EDGE('',*,*,#28,.T.);
84#64=ORIENTED_EDGE('',*,*,#32,.F.);
85#65=ORIENTED_EDGE('',*,*,#24,.F.);
86#66=EDGE_LOOP('',(#63,#64,#65));
87#67=DIRECTION('',(-0.816497,0.471405,0.333333));
88#68=DIRECTION('',(-0.5,-0.866025403784,0.0));
89#69=AXIS2_PLACEMENT_3D('',#3,#67,#68);
90#70=PLANE('',#69);
91#71=FACE_OUTER_BOUND('',#66,.T.);
92#72=ADVANCED_FACE('face_bcd',(#71),#70,.T.);
93#73=OPEN_SHELL('tsh258_shell',(#42,#52,#62,#72));
94#74=SHELL_BASED_SURFACE_MODEL('tsh258_sbsm',(#73));
95/* second, unrelated item: required so the representation has 2+ items -- the reader's
96   single-item shortcut (nsh==1) binds the pre-reconstruction shape directly and would
97   hide the promotion; with 2+ items the reconstructed/promoted compound is what's bound */
98#75=CARTESIAN_POINT('',(20.0,0.0,0.0));
99#76=CARTESIAN_POINT('',(21.0,0.0,0.0));
100#77=CARTESIAN_POINT('',(21.0,1.0,0.0));
101#78=CARTESIAN_POINT('',(20.0,1.0,0.0));
102#79=VERTEX_POINT('',#75);
103#80=VERTEX_POINT('',#76);
104#81=VERTEX_POINT('',#77);
105#82=VERTEX_POINT('',#78);
106#83=DIRECTION('',(1.0,0.0,0.0));
107#84=VECTOR('',#83,1.0);
108#85=LINE('',#75,#84);
109#86=EDGE_CURVE('',#79,#80,#85,.T.);
110#87=DIRECTION('',(0.0,1.0,0.0));
111#88=VECTOR('',#87,1.0);
112#89=LINE('',#76,#88);
113#90=EDGE_CURVE('',#80,#81,#89,.T.);
114#91=DIRECTION('',(-1.0,0.0,0.0));
115#92=VECTOR('',#91,1.0);
116#93=LINE('',#77,#92);
117#94=EDGE_CURVE('',#81,#82,#93,.T.);
118#95=DIRECTION('',(0.0,-1.0,0.0));
119#96=VECTOR('',#95,1.0);
120#97=LINE('',#78,#96);
121#98=EDGE_CURVE('',#82,#79,#97,.T.);
122#99=ORIENTED_EDGE('',*,*,#86,.T.);
123#100=ORIENTED_EDGE('',*,*,#90,.T.);
124#101=ORIENTED_EDGE('',*,*,#94,.T.);
125#102=ORIENTED_EDGE('',*,*,#98,.T.);
126#103=EDGE_LOOP('',(#99,#100,#101,#102));
127#104=DIRECTION('',(0.0,0.0,1.0));
128#105=DIRECTION('',(1.0,0.0,0.0));
129#106=AXIS2_PLACEMENT_3D('',#75,#104,#105);
130#107=PLANE('',#106);
131#108=FACE_OUTER_BOUND('',#103,.T.);
132#109=ADVANCED_FACE('second_item_face',(#108),#107,.T.);
133#110=OPEN_SHELL('second_item_shell',(#109));
134#111=SHELL_BASED_SURFACE_MODEL('second_item_sbsm',(#110));
135#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
136#9051=PRODUCT('Tsh258','Tsh258','',(#9050));
137#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
138#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
139#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
140#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
141#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
142#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
143#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
144#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
145#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
146#9061=NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74,#111),#9060);
147#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
148ENDSEC;
149END-ISO-10303-21;