Tsh066 — Same `CLOSED_SHELL` referenced from two `MANIFOLD_SOLID_BREP` entities

§12.3a shells/orientation (sub-class: shell sharing)

P1 — silent data loss

spec-violation topology

Sources

Sender

deduced — assembly exporters that emit one body per part definition and two bodies that happen to instance the same template shell, or buggy writers that re-use a shell handle without cloning

Description

An EXPRESS-level CLOSED_SHELL entity is referenced as the `outer` attribute of two distinct MANIFOLD_SOLID_BREP entities. The spec describes shells as belonging to one solid (the outer shell of MANIFOLD_SOLID_BREP); cross-referencing the same shell from two solids creates an aliasing situation. A receiver that builds in-memory topology by walking from each solid into its shell produces two solids both pointing at the same shell object; modifications to one (orientation flip, healing) affect the other. Receivers that copy-on-read the shell produce two independent copies and lose the producer's intent (if any) of "shared shell". Bug-reporter language: "two solids share a shell", "shell aliasing", "mutating one solid changes another", "same shell in two solids".

Reproducer recipe

one CLOSED_SHELL `#100` containing six face references; two MANIFOLD_SOLID_BREP entities `#200=MANIFOLD_SOLID_BREP('a',#100)` and `#201=MANIFOLD_SOLID_BREP('b',#100)`; both referenced from the same SHAPE_REPRESENTATION.

Expected kernel behavior

detect the shared-shell aliasing and either reject as malformed (recommended, solid identity becomes ambiguous), copy-on-read with a documented policy, or refuse to mutate either solid until the alias is resolved.

Notes

Distinct from Tsh051 (REPRESENTATION_MAP-style shell sharing, that path is documented). Tsh066 is the direct-reference variant. Synonyms: "shell shared between bodies", "manifold-solid-brep alias", "two solids point at the same shell", "mutating one solid changes the other", "shell aliased between MANIFOLD_SOLID_BREPs".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Tsh051

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh066: One CLOSED_SHELL entity (6-face unit cube) IS referenced by two MANIFOLD_SOLID_BREP entities via the same CLOSED_SHELL entity ID; dual MANIFOLD_SOLID_BREP reference to single CLOSED_SHELL IS the mechanism; receiver walking each solid into the same shell object produces aliased solids; mutation or orientation-flip of one solid's shell corrupts the other; fix: detect shared-shell aliasing; reject as malformed or copy-on-read with documented policy; never allow two MANIFOLD_SOLID_BREPs to alias one shell */
3HEADER;
4FILE_DESCRIPTION(('Tsh066'),'2;1');
5FILE_NAME('Tsh066.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=CARTESIAN_POINT('',(0.0,0.0,1.0));
16#7=DIRECTION('',(0.0,0.0,1.0));
17#8=DIRECTION('',(1.0,0.0,0.0));
18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8);
19#10=PLANE('',#9);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=DIRECTION('',(-1.0,0.0,0.0));
22#13=DIRECTION('',(0.0,1.0,0.0));
23#14=AXIS2_PLACEMENT_3D('',#11,#12,#13);
24#15=PLANE('',#14);
25#16=CARTESIAN_POINT('',(1.0,0.0,0.0));
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=DIRECTION('',(0.0,1.0,0.0));
28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18);
29#20=PLANE('',#19);
30#21=CARTESIAN_POINT('',(0.0,0.0,0.0));
31#22=DIRECTION('',(0.0,-1.0,0.0));
32#23=DIRECTION('',(1.0,0.0,0.0));
33#24=AXIS2_PLACEMENT_3D('',#21,#22,#23);
34#25=PLANE('',#24);
35#26=CARTESIAN_POINT('',(0.0,1.0,0.0));
36#27=DIRECTION('',(0.0,1.0,0.0));
37#28=DIRECTION('',(1.0,0.0,0.0));
38#29=AXIS2_PLACEMENT_3D('',#26,#27,#28);
39#30=PLANE('',#29);
40#31=CARTESIAN_POINT('',(0.0,0.0,0.0));
41#32=CARTESIAN_POINT('',(1.0,0.0,0.0));
42#33=CARTESIAN_POINT('',(1.0,1.0,0.0));
43#34=CARTESIAN_POINT('',(0.0,1.0,0.0));
44#35=VERTEX_POINT('',#31);
45#36=VERTEX_POINT('',#32);
46#37=VERTEX_POINT('',#33);
47#38=VERTEX_POINT('',#34);
48#39=DIRECTION('',(1.0,0.0,0.0));
49#40=VECTOR('',#39,1.0);
50#41=LINE('',#31,#40);
51#42=EDGE_CURVE('',#35,#36,#41,.T.);
52#43=DIRECTION('',(0.0,1.0,0.0));
53#44=VECTOR('',#43,1.0);
54#45=LINE('',#32,#44);
55#46=EDGE_CURVE('',#36,#37,#45,.T.);
56#47=DIRECTION('',(-1.0,0.0,0.0));
57#48=VECTOR('',#47,1.0);
58#49=LINE('',#33,#48);
59#50=EDGE_CURVE('',#37,#38,#49,.T.);
60#51=DIRECTION('',(0.0,-1.0,0.0));
61#52=VECTOR('',#51,1.0);
62#53=LINE('',#34,#52);
63#54=EDGE_CURVE('',#38,#35,#53,.T.);
64#55=ORIENTED_EDGE('',$,$,#42,.T.);
65#56=ORIENTED_EDGE('',$,$,#46,.T.);
66#57=ORIENTED_EDGE('',$,$,#50,.T.);
67#58=ORIENTED_EDGE('',$,$,#54,.T.);
68#59=EDGE_LOOP('',(#55,#56,#57,#58));
69#60=FACE_OUTER_BOUND('',#59,.T.);
70#61=ADVANCED_FACE('',(#60),#5,.T.);
71#62=CARTESIAN_POINT('',(0.0,0.0,1.0));
72#63=CARTESIAN_POINT('',(0.0,1.0,1.0));
73#64=CARTESIAN_POINT('',(1.0,1.0,1.0));
74#65=CARTESIAN_POINT('',(1.0,0.0,1.0));
75#66=VERTEX_POINT('',#62);
76#67=VERTEX_POINT('',#63);
77#68=VERTEX_POINT('',#64);
78#69=VERTEX_POINT('',#65);
79#70=DIRECTION('',(0.0,1.0,0.0));
80#71=VECTOR('',#70,1.0);
81#72=LINE('',#62,#71);
82#73=EDGE_CURVE('',#66,#67,#72,.T.);
83#74=DIRECTION('',(1.0,0.0,0.0));
84#75=VECTOR('',#74,1.0);
85#76=LINE('',#63,#75);
86#77=EDGE_CURVE('',#67,#68,#76,.T.);
87#78=DIRECTION('',(0.0,-1.0,0.0));
88#79=VECTOR('',#78,1.0);
89#80=LINE('',#64,#79);
90#81=EDGE_CURVE('',#68,#69,#80,.T.);
91#82=DIRECTION('',(-1.0,0.0,0.0));
92#83=VECTOR('',#82,1.0);
93#84=LINE('',#65,#83);
94#85=EDGE_CURVE('',#69,#66,#84,.T.);
95#86=ORIENTED_EDGE('',$,$,#73,.T.);
96#87=ORIENTED_EDGE('',$,$,#77,.T.);
97#88=ORIENTED_EDGE('',$,$,#81,.T.);
98#89=ORIENTED_EDGE('',$,$,#85,.T.);
99#90=EDGE_LOOP('',(#86,#87,#88,#89));
100#91=FACE_OUTER_BOUND('',#90,.T.);
101#92=ADVANCED_FACE('',(#91),#10,.T.);
102#93=CARTESIAN_POINT('',(0.0,0.0,0.0));
103#94=CARTESIAN_POINT('',(0.0,0.0,1.0));
104#95=CARTESIAN_POINT('',(1.0,0.0,1.0));
105#96=CARTESIAN_POINT('',(1.0,0.0,0.0));
106#97=VERTEX_POINT('',#93);
107#98=VERTEX_POINT('',#94);
108#99=VERTEX_POINT('',#95);
109#100=VERTEX_POINT('',#96);
110#101=DIRECTION('',(0.0,0.0,1.0));
111#102=VECTOR('',#101,1.0);
112#103=LINE('',#93,#102);
113#104=EDGE_CURVE('',#97,#98,#103,.T.);
114#105=DIRECTION('',(1.0,0.0,0.0));
115#106=VECTOR('',#105,1.0);
116#107=LINE('',#94,#106);
117#108=EDGE_CURVE('',#98,#99,#107,.T.);
118#109=DIRECTION('',(0.0,0.0,-1.0));
119#110=VECTOR('',#109,1.0);
120#111=LINE('',#95,#110);
121#112=EDGE_CURVE('',#99,#100,#111,.T.);
122#113=DIRECTION('',(-1.0,0.0,0.0));
123#114=VECTOR('',#113,1.0);
124#115=LINE('',#96,#114);
125#116=EDGE_CURVE('',#100,#97,#115,.T.);
126#117=ORIENTED_EDGE('',$,$,#104,.T.);
127#118=ORIENTED_EDGE('',$,$,#108,.T.);
128#119=ORIENTED_EDGE('',$,$,#112,.T.);
129#120=ORIENTED_EDGE('',$,$,#116,.T.);
130#121=EDGE_LOOP('',(#117,#118,#119,#120));
131#122=FACE_OUTER_BOUND('',#121,.T.);
132#123=ADVANCED_FACE('',(#122),#25,.T.);
133#124=CARTESIAN_POINT('',(0.0,1.0,0.0));
134#125=CARTESIAN_POINT('',(1.0,1.0,0.0));
135#126=CARTESIAN_POINT('',(1.0,1.0,1.0));
136#127=CARTESIAN_POINT('',(0.0,1.0,1.0));
137#128=VERTEX_POINT('',#124);
138#129=VERTEX_POINT('',#125);
139#130=VERTEX_POINT('',#126);
140#131=VERTEX_POINT('',#127);
141#132=DIRECTION('',(1.0,0.0,0.0));
142#133=VECTOR('',#132,1.0);
143#134=LINE('',#124,#133);
144#135=EDGE_CURVE('',#128,#129,#134,.T.);
145#136=DIRECTION('',(0.0,0.0,1.0));
146#137=VECTOR('',#136,1.0);
147#138=LINE('',#125,#137);
148#139=EDGE_CURVE('',#129,#130,#138,.T.);
149#140=DIRECTION('',(-1.0,0.0,0.0));
150#141=VECTOR('',#140,1.0);
151#142=LINE('',#126,#141);
152#143=EDGE_CURVE('',#130,#131,#142,.T.);
153#144=DIRECTION('',(0.0,0.0,-1.0));
154#145=VECTOR('',#144,1.0);
155#146=LINE('',#127,#145);
156#147=EDGE_CURVE('',#131,#128,#146,.T.);
157#148=ORIENTED_EDGE('',$,$,#135,.T.);
158#149=ORIENTED_EDGE('',$,$,#139,.T.);
159#150=ORIENTED_EDGE('',$,$,#143,.T.);
160#151=ORIENTED_EDGE('',$,$,#147,.T.);
161#152=EDGE_LOOP('',(#148,#149,#150,#151));
162#153=FACE_OUTER_BOUND('',#152,.T.);
163#154=ADVANCED_FACE('',(#153),#30,.T.);
164#155=CARTESIAN_POINT('',(0.0,0.0,0.0));
165#156=CARTESIAN_POINT('',(0.0,1.0,0.0));
166#157=CARTESIAN_POINT('',(0.0,1.0,1.0));
167#158=CARTESIAN_POINT('',(0.0,0.0,1.0));
168#159=VERTEX_POINT('',#155);
169#160=VERTEX_POINT('',#156);
170#161=VERTEX_POINT('',#157);
171#162=VERTEX_POINT('',#158);
172#163=DIRECTION('',(0.0,1.0,0.0));
173#164=VECTOR('',#163,1.0);
174#165=LINE('',#155,#164);
175#166=EDGE_CURVE('',#159,#160,#165,.T.);
176#167=DIRECTION('',(0.0,0.0,1.0));
177#168=VECTOR('',#167,1.0);
178#169=LINE('',#156,#168);
179#170=EDGE_CURVE('',#160,#161,#169,.T.);
180#171=DIRECTION('',(0.0,-1.0,0.0));
181#172=VECTOR('',#171,1.0);
182#173=LINE('',#157,#172);
183#174=EDGE_CURVE('',#161,#162,#173,.T.);
184#175=DIRECTION('',(0.0,0.0,-1.0));
185#176=VECTOR('',#175,1.0);
186#177=LINE('',#158,#176);
187#178=EDGE_CURVE('',#162,#159,#177,.T.);
188#179=ORIENTED_EDGE('',$,$,#166,.T.);
189#180=ORIENTED_EDGE('',$,$,#170,.T.);
190#181=ORIENTED_EDGE('',$,$,#174,.T.);
191#182=ORIENTED_EDGE('',$,$,#178,.T.);
192#183=EDGE_LOOP('',(#179,#180,#181,#182));
193#184=FACE_OUTER_BOUND('',#183,.T.);
194#185=ADVANCED_FACE('',(#184),#15,.T.);
195#186=CARTESIAN_POINT('',(1.0,0.0,0.0));
196#187=CARTESIAN_POINT('',(1.0,0.0,1.0));
197#188=CARTESIAN_POINT('',(1.0,1.0,1.0));
198#189=CARTESIAN_POINT('',(1.0,1.0,0.0));
199#190=VERTEX_POINT('',#186);
200#191=VERTEX_POINT('',#187);
201#192=VERTEX_POINT('',#188);
202#193=VERTEX_POINT('',#189);
203#194=DIRECTION('',(0.0,0.0,1.0));
204#195=VECTOR('',#194,1.0);
205#196=LINE('',#186,#195);
206#197=EDGE_CURVE('',#190,#191,#196,.T.);
207#198=DIRECTION('',(0.0,1.0,0.0));
208#199=VECTOR('',#198,1.0);
209#200=LINE('',#187,#199);
210#201=EDGE_CURVE('',#191,#192,#200,.T.);
211#202=DIRECTION('',(0.0,0.0,-1.0));
212#203=VECTOR('',#202,1.0);
213#204=LINE('',#188,#203);
214#205=EDGE_CURVE('',#192,#193,#204,.T.);
215#206=DIRECTION('',(0.0,-1.0,0.0));
216#207=VECTOR('',#206,1.0);
217#208=LINE('',#189,#207);
218#209=EDGE_CURVE('',#193,#190,#208,.T.);
219#210=ORIENTED_EDGE('',$,$,#197,.T.);
220#211=ORIENTED_EDGE('',$,$,#201,.T.);
221#212=ORIENTED_EDGE('',$,$,#205,.T.);
222#213=ORIENTED_EDGE('',$,$,#209,.T.);
223#214=EDGE_LOOP('',(#210,#211,#212,#213));
224#215=FACE_OUTER_BOUND('',#214,.T.);
225#216=ADVANCED_FACE('',(#215),#20,.T.);
226#217=CLOSED_SHELL('',(#61,#92,#123,#154,#185,#216));
227#218=MANIFOLD_SOLID_BREP('brep_a',#217);
228#219=MANIFOLD_SOLID_BREP('brep_b',#217);
229#220=SHELL_BASED_SURFACE_MODEL('',(#217));
230#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
231#9051=PRODUCT('Tsh066','Tsh066','',(#9050));
232#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
233#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
234#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
235#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
236#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
237#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
238#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
239#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
240#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
241#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#220),#9060);
242#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
243ENDSEC;
244END-ISO-10303-21;