Ps006 — Self-overlapping shell: one face double-covers a region of another

§12.3a shells / orientation (sub-class: pathological-success / coverage-multiplicity)

topology

Sources

Description

A "closed" shell where a single planar region is represented twice: once by a large face spanning the whole region, and once by a smaller face on the same supporting PLANE covering a sub-region. The smaller face's edges are not shared with the larger face's loop; they form a separate boundary. Edge-degree-per-shell checks pass within each face's own loop. Kernel accepts the file silently; tier-3 introspection (point-in-face count over a sample grid) reveals certain points are "inside" two faces simultaneously.

Reproducer recipe

A unit cube whose bottom z=0 face is represented TWICE — once as the full unit square, once as the (0.0.5, 0.0.5) quadrant of the same PLANE. Both faces appear in the same OPEN_SHELL.

Expected kernel behavior

Detect overlapping face supports in a shell; either by checking that no two faces share a positive-area region of the same supporting surface, or by enforcing the edge-degree-2 invariant globally (overlapping faces fail it). Should reject, repair, or surface the overlap as a quality metric.

Notes

Tier-3 metric: cumulative covered-area-per-supporting-surface vs. union-area. For a clean shell these match; here they differ by the area of the overlay quadrant. T-vertices appear at (0.5, 0, 0), (0.5, 0.5, 0), (0, 0.5, 0). Synonyms: "shell has T-vertices", "two faces on same plane overlap", "mesh has double-covered triangles", "face partially covers another face", "overlapping coplanar faces in shell".

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Ps006: OPEN_SHELL for unit-cube bottom face contains BOTH a full 1x1 square face AND a 0.5x0.5 quadrant face on the same supporting PLANE at z=0; double-coverage IS wired into OPEN_SHELL face list of SHELL_BASED_SURFACE_MODEL; T-vertices appear at (0.5,0,0),(0.5,0.5,0),(0,0.5,0); BRepCheck passes */
3HEADER;
4FILE_DESCRIPTION(('Ps006'),'2;1');
5FILE_NAME('Ps006.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=CARTESIAN_POINT('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(1.0,1.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,1.0,0.0));
14#5=CARTESIAN_POINT('',(0.0,0.0,1.0));
15#6=CARTESIAN_POINT('',(1.0,0.0,1.0));
16#7=CARTESIAN_POINT('',(1.0,1.0,1.0));
17#8=CARTESIAN_POINT('',(0.0,1.0,1.0));
18#9=VERTEX_POINT('',#1);
19#10=VERTEX_POINT('',#2);
20#11=VERTEX_POINT('',#3);
21#12=VERTEX_POINT('',#4);
22#13=VERTEX_POINT('',#5);
23#14=VERTEX_POINT('',#6);
24#15=VERTEX_POINT('',#7);
25#16=VERTEX_POINT('',#8);
26#17=DIRECTION('',(1,0,0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#1,#18);
29#20=EDGE_CURVE('',#9,#10,#19,.T.);
30#21=DIRECTION('',(0,1,0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#2,#22);
33#24=EDGE_CURVE('',#10,#11,#23,.T.);
34#25=DIRECTION('',(1,0,0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#4,#26);
37#28=EDGE_CURVE('',#12,#11,#27,.T.);
38#29=DIRECTION('',(0,1,0));
39#30=VECTOR('',#29,1.0);
40#31=LINE('',#1,#30);
41#32=EDGE_CURVE('',#9,#12,#31,.T.);
42#33=DIRECTION('',(1,0,0));
43#34=VECTOR('',#33,1.0);
44#35=LINE('',#5,#34);
45#36=EDGE_CURVE('',#13,#14,#35,.T.);
46#37=DIRECTION('',(0,1,0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#6,#38);
49#40=EDGE_CURVE('',#14,#15,#39,.T.);
50#41=DIRECTION('',(1,0,0));
51#42=VECTOR('',#41,1.0);
52#43=LINE('',#8,#42);
53#44=EDGE_CURVE('',#16,#15,#43,.T.);
54#45=DIRECTION('',(0,1,0));
55#46=VECTOR('',#45,1.0);
56#47=LINE('',#5,#46);
57#48=EDGE_CURVE('',#13,#16,#47,.T.);
58#49=DIRECTION('',(0,0,1));
59#50=VECTOR('',#49,1.0);
60#51=LINE('',#1,#50);
61#52=EDGE_CURVE('',#9,#13,#51,.T.);
62#53=DIRECTION('',(0,0,1));
63#54=VECTOR('',#53,1.0);
64#55=LINE('',#2,#54);
65#56=EDGE_CURVE('',#10,#14,#55,.T.);
66#57=DIRECTION('',(0,0,1));
67#58=VECTOR('',#57,1.0);
68#59=LINE('',#3,#58);
69#60=EDGE_CURVE('',#11,#15,#59,.T.);
70#61=DIRECTION('',(0,0,1));
71#62=VECTOR('',#61,1.0);
72#63=LINE('',#4,#62);
73#64=EDGE_CURVE('',#12,#16,#63,.T.);
74#65=CARTESIAN_POINT('',(0,0,1));
75#66=DIRECTION('',(0,0,1));
76#67=DIRECTION('',(1,0,0));
77#68=AXIS2_PLACEMENT_3D('',#65,#66,#67);
78#69=PLANE('',#68);
79#70=CARTESIAN_POINT('',(0,0,0));
80#71=DIRECTION('',(0,-1,0));
81#72=DIRECTION('',(1,0,0));
82#73=AXIS2_PLACEMENT_3D('',#70,#71,#72);
83#74=PLANE('',#73);
84#75=CARTESIAN_POINT('',(0,1,0));
85#76=DIRECTION('',(0,1,0));
86#77=DIRECTION('',(1,0,0));
87#78=AXIS2_PLACEMENT_3D('',#75,#76,#77);
88#79=PLANE('',#78);
89#80=CARTESIAN_POINT('',(0,0,0));
90#81=DIRECTION('',(-1,0,0));
91#82=DIRECTION('',(0,1,0));
92#83=AXIS2_PLACEMENT_3D('',#80,#81,#82);
93#84=PLANE('',#83);
94#85=CARTESIAN_POINT('',(1,0,0));
95#86=DIRECTION('',(1,0,0));
96#87=DIRECTION('',(0,1,0));
97#88=AXIS2_PLACEMENT_3D('',#85,#86,#87);
98#89=PLANE('',#88);
99#90=ORIENTED_EDGE('',$,$,#36,.T.);
100#91=ORIENTED_EDGE('',$,$,#40,.T.);
101#92=ORIENTED_EDGE('',$,$,#44,.F.);
102#93=ORIENTED_EDGE('',$,$,#48,.F.);
103#94=EDGE_LOOP('',(#90,#91,#92,#93));
104#95=FACE_OUTER_BOUND('',#94,.T.);
105#96=ADVANCED_FACE('',(#95),#69,.T.);
106#97=ORIENTED_EDGE('',$,$,#20,.T.);
107#98=ORIENTED_EDGE('',$,$,#56,.T.);
108#99=ORIENTED_EDGE('',$,$,#36,.F.);
109#100=ORIENTED_EDGE('',$,$,#52,.F.);
110#101=EDGE_LOOP('',(#97,#98,#99,#100));
111#102=FACE_OUTER_BOUND('',#101,.T.);
112#103=ADVANCED_FACE('',(#102),#74,.T.);
113#104=ORIENTED_EDGE('',$,$,#28,.T.);
114#105=ORIENTED_EDGE('',$,$,#60,.T.);
115#106=ORIENTED_EDGE('',$,$,#44,.F.);
116#107=ORIENTED_EDGE('',$,$,#64,.F.);
117#108=EDGE_LOOP('',(#104,#105,#106,#107));
118#109=FACE_OUTER_BOUND('',#108,.T.);
119#110=ADVANCED_FACE('',(#109),#79,.T.);
120#111=ORIENTED_EDGE('',$,$,#32,.T.);
121#112=ORIENTED_EDGE('',$,$,#64,.T.);
122#113=ORIENTED_EDGE('',$,$,#48,.F.);
123#114=ORIENTED_EDGE('',$,$,#52,.F.);
124#115=EDGE_LOOP('',(#111,#112,#113,#114));
125#116=FACE_OUTER_BOUND('',#115,.T.);
126#117=ADVANCED_FACE('',(#116),#84,.T.);
127#118=ORIENTED_EDGE('',$,$,#24,.T.);
128#119=ORIENTED_EDGE('',$,$,#60,.T.);
129#120=ORIENTED_EDGE('',$,$,#40,.F.);
130#121=ORIENTED_EDGE('',$,$,#56,.F.);
131#122=EDGE_LOOP('',(#118,#119,#120,#121));
132#123=FACE_OUTER_BOUND('',#122,.T.);
133#124=ADVANCED_FACE('',(#123),#89,.T.);
134#125=CARTESIAN_POINT('',(0,0,0));
135#126=DIRECTION('',(0,0,-1));
136#127=DIRECTION('',(1,0,0));
137#128=AXIS2_PLACEMENT_3D('',#125,#126,#127);
138#129=PLANE('',#128);
139#130=ORIENTED_EDGE('',$,$,#20,.T.);
140#131=ORIENTED_EDGE('',$,$,#24,.T.);
141#132=ORIENTED_EDGE('',$,$,#28,.F.);
142#133=ORIENTED_EDGE('',$,$,#32,.F.);
143#134=EDGE_LOOP('',(#130,#131,#132,#133));
144#135=FACE_OUTER_BOUND('',#134,.T.);
145#136=ADVANCED_FACE('',(#135),#129,.T.);
146#137=CARTESIAN_POINT('',(0.0,0.0,0.0));
147#138=CARTESIAN_POINT('',(0.5,0.0,0.0));
148#139=CARTESIAN_POINT('',(0.5,0.5,0.0));
149#140=CARTESIAN_POINT('',(0.0,0.5,0.0));
150#141=VERTEX_POINT('',#137);
151#142=VERTEX_POINT('',#138);
152#143=VERTEX_POINT('',#139);
153#144=VERTEX_POINT('',#140);
154#145=DIRECTION('',(1,0,0.0));
155#146=VECTOR('',#145,0.5);
156#147=LINE('',#137,#146);
157#148=EDGE_CURVE('',#141,#142,#147,.T.);
158#149=DIRECTION('',(0,1,0.0));
159#150=VECTOR('',#149,0.5);
160#151=LINE('',#138,#150);
161#152=EDGE_CURVE('',#142,#143,#151,.T.);
162#153=DIRECTION('',(1,0,0.0));
163#154=VECTOR('',#153,0.5);
164#155=LINE('',#140,#154);
165#156=EDGE_CURVE('',#144,#143,#155,.T.);
166#157=DIRECTION('',(0,1,0.0));
167#158=VECTOR('',#157,0.5);
168#159=LINE('',#137,#158);
169#160=EDGE_CURVE('',#141,#144,#159,.T.);
170#161=CARTESIAN_POINT('',(0,0,0));
171#162=DIRECTION('',(0,0,-1));
172#163=DIRECTION('',(1,0,0));
173#164=AXIS2_PLACEMENT_3D('',#161,#162,#163);
174#165=PLANE('',#164);
175#166=ORIENTED_EDGE('',$,$,#148,.T.);
176#167=ORIENTED_EDGE('',$,$,#152,.T.);
177#168=ORIENTED_EDGE('',$,$,#156,.F.);
178#169=ORIENTED_EDGE('',$,$,#160,.F.);
179#170=EDGE_LOOP('',(#166,#167,#168,#169));
180#171=FACE_OUTER_BOUND('',#170,.T.);
181#172=ADVANCED_FACE('',(#171),#165,.T.);
182#173=OPEN_SHELL('ps006_double_bottom',(#136,#172,#96,#103,#110,#117,#124));
183#174=SHELL_BASED_SURFACE_MODEL('ps006_overlapping_shell',(#173));
184#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
185#9051=PRODUCT('Ps006','Ps006','',(#9050));
186#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
187#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
188#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
189#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
190#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
191#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
192#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
193#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
194#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
195#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#174),#9060);
196#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
197ENDSEC;
198END-ISO-10303-21;