Tsh191 — ShapeFix_Shell.FixFaceOrientation multi-connected edge unbounded

§12.3a shells (sub-class: unbounded-iteration)

topology

Sources

Description

Multi-connected edges (3+ faces sharing edge) only handled if isAccountMultiConex=true; loop processing lacks iteration bound. Three faces share single edge; aMapMultiConnectEdges exhaustively populated without complexity limit.

Reproducer recipe

Expected kernel behavior

one edge is shared by three faces, not two. A correct kernel must recognise that an edge with more than two adjacent faces is non-manifold, handle orientation deterministically or decline to fix it, and do so in work bounded by the size of the input. Enumerating the face combinations around such an edge without a bound turns a small pathological model into an unbounded computation.

Notes

unbounded_iteration; isAccountMultiConex; aFaceCount > 2; aMapMultiConnectEdges

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh191: OPEN_SHELL with THREE ADVANCED_FACEs sharing ONE EDGE_CURVE IS the multi-connected edge defect trigger; e_shared IS EDGE_CURVE from v_origin to v_end — IS the multi-connected edge; face_a, face_b, face_c each reference e_shared via oriented_edge — IS the three-face share; face_a IS triangle (origin, end, apex_a) — IS first multi-connected face; face_b IS triangle (origin, end, apex_b) — IS second multi-connected face; face_c IS triangle (origin, end, apex_c) — IS third multi-connected face; FixFaceOrientation detects e_shared has count > 2 — IS the multi-connected trigger; isAccountMultiConex branch populates aMapMultiConnectEdges with all three faces — IS the defect path; traversal lacks iteration bound — IS the unbounded loop defect; fix: limit aMapMultiConnectEdges traversal to O(n) with early-exit guard; emit E_MULTICONNECT_UNBOUNDED when edge face-count exceeds threshold without bound */
3HEADER;
4FILE_DESCRIPTION(('Tsh191'),'2;1');
5FILE_NAME('Tsh191.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=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(1.0,0.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=DIRECTION('',(1.0,0.0,0.0));
15#6=VECTOR('',#5,1.0);
16#7=LINE('',#1,#6);
17#8=EDGE_CURVE('',#2,#4,#7,.T.);
18#9=CARTESIAN_POINT('',(0.5,1.0,0.0));
19#10=VERTEX_POINT('',#9);
20#11=CARTESIAN_POINT('',(0.5,-1.0,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(0.5,0.0,1.0));
23#14=VERTEX_POINT('',#13);
24#15=DIRECTION('',(-0.5,1.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#3,#16);
27#18=EDGE_CURVE('',#4,#10,#17,.T.);
28#19=DIRECTION('',(-0.5,-1.0,0.0));
29#20=VECTOR('',#19,1.0);
30#21=LINE('',#9,#20);
31#22=EDGE_CURVE('',#10,#2,#21,.T.);
32#23=ORIENTED_EDGE('',$,$,#8,.T.);
33#24=ORIENTED_EDGE('',$,$,#18,.T.);
34#25=ORIENTED_EDGE('',$,$,#22,.T.);
35#26=EDGE_LOOP('',(#23,#24,#25));
36#27=DIRECTION('',(0.0,0.0,1.0));
37#28=DIRECTION('',(1.0,0.0,0.0));
38#29=AXIS2_PLACEMENT_3D('',#1,#27,#28);
39#30=PLANE('',#29);
40#31=FACE_OUTER_BOUND('',#26,.T.);
41#32=ADVANCED_FACE('',(#31),#30,.T.);
42#33=DIRECTION('',(-0.5,-1.0,0.0));
43#34=VECTOR('',#33,1.0);
44#35=LINE('',#3,#34);
45#36=EDGE_CURVE('',#4,#12,#35,.T.);
46#37=DIRECTION('',(-0.5,1.0,0.0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#11,#38);
49#40=EDGE_CURVE('',#12,#2,#39,.T.);
50#41=ORIENTED_EDGE('',$,$,#8,.T.);
51#42=ORIENTED_EDGE('',$,$,#36,.T.);
52#43=ORIENTED_EDGE('',$,$,#40,.T.);
53#44=EDGE_LOOP('',(#41,#42,#43));
54#45=DIRECTION('',(0.0,0.0,-1.0));
55#46=DIRECTION('',(1.0,0.0,0.0));
56#47=AXIS2_PLACEMENT_3D('',#1,#45,#46);
57#48=PLANE('',#47);
58#49=FACE_OUTER_BOUND('',#44,.T.);
59#50=ADVANCED_FACE('',(#49),#48,.T.);
60#51=DIRECTION('',(-0.5,0.0,1.0));
61#52=VECTOR('',#51,1.0);
62#53=LINE('',#3,#52);
63#54=EDGE_CURVE('',#4,#14,#53,.T.);
64#55=DIRECTION('',(-0.5,0.0,-1.0));
65#56=VECTOR('',#55,1.0);
66#57=LINE('',#13,#56);
67#58=EDGE_CURVE('',#14,#2,#57,.T.);
68#59=ORIENTED_EDGE('',$,$,#8,.T.);
69#60=ORIENTED_EDGE('',$,$,#54,.T.);
70#61=ORIENTED_EDGE('',$,$,#58,.T.);
71#62=EDGE_LOOP('',(#59,#60,#61));
72#63=DIRECTION('',(0.0,-1.0,0.0));
73#64=DIRECTION('',(1.0,0.0,0.0));
74#65=AXIS2_PLACEMENT_3D('',#1,#63,#64);
75#66=PLANE('',#65);
76#67=FACE_OUTER_BOUND('',#62,.T.);
77#68=ADVANCED_FACE('',(#67),#66,.T.);
78#69=OPEN_SHELL('',(#32,#50,#68));
79#70=SHELL_BASED_SURFACE_MODEL('',(#69));
80#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
81#9051=PRODUCT('Tsh191','Tsh191','',(#9050));
82#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
83#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
84#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
85#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
86#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
87#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
88#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
89#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
90#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
91#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#70),#9060);
92#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
93ENDSEC;
94END-ISO-10303-21;