Tsh046 — Adjacent same-domain faces fail to merge across linear-edge chain

§12.3a shells/orientation

P1 — silent data loss

topology

Sources

Description

A flat face has been split along a chain of small, near-collinear edges (a "stitched" boundary from sliver-face removal). After a face-unification step, the chain is still present: the merge skipped these edges because the per-edge angle test was satisfied but the chain's *cumulative* deviation was not considered. The shell still has dozens of redundant tiny faces.

Reproducer recipe

Single rectangular face whose right-hand boundary is composed of 8 short LINE edges, each turning by 0.5 degrees from the previous, so that the cumulative deviation across the chain is 4 degrees. A neighbour face shares the same chain of edges. Expected to unify into one face after cleanup, but the per-edge angle threshold of 1 degree marks each pair as non-collinear.

Expected kernel behavior

when merging same-domain faces, accumulate angular deviation across consecutive collinear-tested edges and report a single merge decision for the entire chain, not per-edge.

Notes

**See also**: Tfa016, Tsh047. Synonyms: "tiny stitched edges not merged", "near-collinear edge chain not unified", "cumulative angle deviation across edges", "redundant slivers left after healing", "per-edge angle threshold misses chain".

Expected validation

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

Closure intent

ambiguous — the open shell is an incidental scaffold for a non-closure-related test.

Byte assertions

Tier-3 assertions

Cross-references

Tfa016, Tsh047

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh046: OPEN_SHELL with 2 co-planar ADVANCED_FACEs; shared boundary is a chain of 8 short near-collinear edges, each turning 0.5 deg (cumulative 4 deg); per-edge angle check (<1 deg) passes individually but chain fails overall; kinked-chain IS wired into shell/face/edge topology; face unifier must accumulate deviation across whole chain */
3HEADER;
4FILE_DESCRIPTION(('Tsh046'),'2;1');
5FILE_NAME('Tsh046.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('',(1.0,0.0,0.0));
11#2=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(0.998909183063,0.124995240383,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(0.996727632258,0.249976202278,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(0.99345551372,0.3749333679,0.0));
17#8=VERTEX_POINT('',#7);
18#9=CARTESIAN_POINT('',(0.989093076632,0.499857221277,0.0));
19#10=VERTEX_POINT('',#9);
20#11=CARTESIAN_POINT('',(0.983640653211,0.624738248975,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(0.977098658681,0.749566940819,0.0));
23#14=VERTEX_POINT('',#13);
24#15=CARTESIAN_POINT('',(0.969467591239,0.874333790622,0.0));
25#16=VERTEX_POINT('',#15);
26#17=CARTESIAN_POINT('',(0.960748032021,0.999029296904,0.0));
27#18=VERTEX_POINT('',#17);
28#19=CARTESIAN_POINT('',(1.0,0.0,0.0));
29#20=DIRECTION('',(-0.0010908169373,0.124995240383,0.0));
30#21=VECTOR('',#20,1.0);
31#22=LINE('',#19,#21);
32#23=EDGE_CURVE('',#2,#4,#22,.T.);
33#24=CARTESIAN_POINT('',(0.998909183063,0.124995240383,0.0));
34#25=DIRECTION('',(-0.00218155080466,0.124980961895,0.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#24,#26);
37#28=EDGE_CURVE('',#4,#6,#27,.T.);
38#29=CARTESIAN_POINT('',(0.996727632258,0.249976202278,0.0));
39#30=DIRECTION('',(-0.00327211853848,0.124957165622,0.0));
40#31=VECTOR('',#30,1.0);
41#32=LINE('',#29,#31);
42#33=EDGE_CURVE('',#6,#8,#32,.T.);
43#34=CARTESIAN_POINT('',(0.99345551372,0.3749333679,0.0));
44#35=DIRECTION('',(-0.00436243708781,0.124923853377,0.0));
45#36=VECTOR('',#35,1.0);
46#37=LINE('',#34,#36);
47#38=EDGE_CURVE('',#8,#10,#37,.T.);
48#39=CARTESIAN_POINT('',(0.989093076632,0.499857221277,0.0));
49#40=DIRECTION('',(-0.00545242342067,0.124881027698,0.0));
50#41=VECTOR('',#40,1.0);
51#42=LINE('',#39,#41);
52#43=EDGE_CURVE('',#10,#12,#42,.T.);
53#44=CARTESIAN_POINT('',(0.983640653211,0.624738248975,0.0));
54#45=DIRECTION('',(-0.00654199453037,0.124828691844,0.0));
55#46=VECTOR('',#45,1.0);
56#47=LINE('',#44,#46);
57#48=EDGE_CURVE('',#12,#14,#47,.T.);
58#49=CARTESIAN_POINT('',(0.977098658681,0.749566940819,0.0));
59#50=DIRECTION('',(-0.00763106744186,0.124766849803,0.0));
60#51=VECTOR('',#50,1.0);
61#52=LINE('',#49,#51);
62#53=EDGE_CURVE('',#14,#16,#52,.T.);
63#54=CARTESIAN_POINT('',(0.969467591239,0.874333790622,0.0));
64#55=DIRECTION('',(-0.00871955921802,0.124695506282,0.0));
65#56=VECTOR('',#55,1.0);
66#57=LINE('',#54,#56);
67#58=EDGE_CURVE('',#16,#18,#57,.T.);
68#59=CARTESIAN_POINT('',(0.0,0.0,0.0));
69#60=CARTESIAN_POINT('',(1.0,0.0,0.0));
70#61=CARTESIAN_POINT('',(0.960748032021,0.999029296904,0.0));
71#62=CARTESIAN_POINT('',(0.0,1.0,0.0));
72#63=VERTEX_POINT('',#59);
73#64=VERTEX_POINT('',#62);
74#65=DIRECTION('',(1.0,0.0,0.0));
75#66=VECTOR('',#65,1.0);
76#67=LINE('',#59,#66);
77#68=EDGE_CURVE('',#63,#2,#67,.T.);
78#69=DIRECTION('',(-1.0,0.0,0.0));
79#70=VECTOR('',#69,1.0);
80#71=LINE('',(0.960748032021,0.999029296904,0.0),#70);
81#72=EDGE_CURVE('',#18,#64,#71,.T.);
82#73=DIRECTION('',(0.0,-1.0,0.0));
83#74=VECTOR('',#73,1.0);
84#75=LINE('',#62,#74);
85#76=EDGE_CURVE('',#64,#63,#75,.T.);
86#77=ORIENTED_EDGE('',$,$,#23,.T.);
87#78=ORIENTED_EDGE('',$,$,#28,.T.);
88#79=ORIENTED_EDGE('',$,$,#33,.T.);
89#80=ORIENTED_EDGE('',$,$,#38,.T.);
90#81=ORIENTED_EDGE('',$,$,#43,.T.);
91#82=ORIENTED_EDGE('',$,$,#48,.T.);
92#83=ORIENTED_EDGE('',$,$,#53,.T.);
93#84=ORIENTED_EDGE('',$,$,#58,.T.);
94#85=ORIENTED_EDGE('',$,$,#68,.T.);
95#86=ORIENTED_EDGE('',$,$,#72,.T.);
96#87=ORIENTED_EDGE('',$,$,#76,.T.);
97#88=EDGE_LOOP('',(#85,#77,#78,#79,#80,#81,#82,#83,#84,#86,#87));
98#89=CARTESIAN_POINT('',(0.0,0.0,0.0));
99#90=DIRECTION('',(0.0,0.0,1.0));
100#91=DIRECTION('',(1.0,0.0,0.0));
101#92=AXIS2_PLACEMENT_3D('',#89,#90,#91);
102#93=PLANE('',#92);
103#94=FACE_OUTER_BOUND('',#88,.T.);
104#95=ADVANCED_FACE('',(#94),#93,.T.);
105#96=CARTESIAN_POINT('',(1.0,0.0,0.0));
106#97=CARTESIAN_POINT('',(1.46074803202,0.0,0.0));
107#98=CARTESIAN_POINT('',(1.46074803202,1.0,0.0));
108#99=CARTESIAN_POINT('',(0.960748032021,0.999029296904,0.0));
109#100=VERTEX_POINT('',#97);
110#101=VERTEX_POINT('',#98);
111#102=DIRECTION('',(1.0,0.0,0.0));
112#103=VECTOR('',#102,1.0);
113#104=LINE('',(1.0,0.0,0.0),#103);
114#105=EDGE_CURVE('',#2,#100,#104,.T.);
115#106=DIRECTION('',(0.0,1.0,0.0));
116#107=VECTOR('',#106,1.0);
117#108=LINE('',#97,#107);
118#109=EDGE_CURVE('',#100,#101,#108,.T.);
119#110=DIRECTION('',(-1.0,0.0,0.0));
120#111=VECTOR('',#110,1.0);
121#112=LINE('',#98,#111);
122#113=EDGE_CURVE('',#101,#18,#112,.T.);
123#114=ORIENTED_EDGE('',$,$,#58,.F.);
124#115=ORIENTED_EDGE('',$,$,#53,.F.);
125#116=ORIENTED_EDGE('',$,$,#48,.F.);
126#117=ORIENTED_EDGE('',$,$,#43,.F.);
127#118=ORIENTED_EDGE('',$,$,#38,.F.);
128#119=ORIENTED_EDGE('',$,$,#33,.F.);
129#120=ORIENTED_EDGE('',$,$,#28,.F.);
130#121=ORIENTED_EDGE('',$,$,#23,.F.);
131#122=ORIENTED_EDGE('',$,$,#105,.T.);
132#123=ORIENTED_EDGE('',$,$,#109,.T.);
133#124=ORIENTED_EDGE('',$,$,#113,.T.);
134#125=EDGE_LOOP('',(#122,#123,#124,#114,#115,#116,#117,#118,#119,#120,#121));
135#126=FACE_OUTER_BOUND('',#125,.T.);
136#127=ADVANCED_FACE('',(#126),#93,.T.);
137#128=OPEN_SHELL('',(#95,#127));
138#129=SHELL_BASED_SURFACE_MODEL('',(#128));
139#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
140#9051=PRODUCT('Tsh046','Tsh046','',(#9050));
141#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
142#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
143#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
144#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
145#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
146#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
147#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
148#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
149#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
150#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#129),#9060);
151#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
152ENDSEC;
153END-ISO-10303-21;