step-examples/12-3a-shells/Tsh225.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Shell.FixFaceOrientation multiconnect_edge_loop_unbounded
Reproducer recipe
Expected kernel behavior
All three triangular faces (A, B, C) share the identical central edge from V_origin(0,0,0) to V_top(0,0,1) — one edge incident to three faces, non-manifold by definition (a manifold edge has exactly two incident faces). Detect and explicitly report edges with three or more incident faces as non-manifold before running any per-pair orientation-consistency logic across them; a general-purpose non-manifold check (bounded by the actual number of incident faces, however large) is required here, not pairwise comparison assumed to apply only to ordinary two-face edges.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(15) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 3
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh225: OPEN_SHELL with THREE TRIANGULAR ADVANCED_FACEs sharing a central edge IS the multiconnect_edge_loop_unbounded trigger; shared central edge runs from V_origin(0,0,0) to V_top(0,0,1) â IS the non-manifold edge; face A IS a triangle: V_origin, V_top, V_right(1,0,0) â IS the first incident face; face B IS a triangle: V_origin, V_top, V_front(0,1,0) â IS the second incident face; face C IS a triangle: V_origin, V_top, V_left(-1,0,0) â IS the third incident face; central edge IS incident to all three faces â IS the 3+ face non-manifold incidence; isAccountMultiConex detects 3 incident faces on central edge â IS the multi-connect detection; isAccountMultiConex loop iterates over all (face-pair) combinations â IS the O(n^2) iteration; loop has no termination bound for 3+ incident faces â IS the unbounded-iteration defect; pathological mesh with more incident faces causes progressively worse O(n^2) behavior; fix: isAccountMultiConex must cap iterations or use linear scan; emit E_MULTICONNECT_EDGE_LOOP_UNBOUNDED when edge has 3+ incident faces during FixFaceOrientation */ 3HEADER; 4FILE_DESCRIPTION(('Tsh225'),'2;1'); 5FILE_NAME('Tsh225.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('',(0.0,0.0,1.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(1.0,0.0,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=CARTESIAN_POINT('',(0.0,1.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 19#10=VERTEX_POINT('',#9); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#1,#12); 23#14=EDGE_CURVE('',#2,#4,#13,.T.); 24#15=DIRECTION('',(1.0,0.0,-1.0)); 25#16=VECTOR('',#15,1.0); 26#17=LINE('',#3,#16); 27#18=EDGE_CURVE('',#4,#6,#17,.T.); 28#19=DIRECTION('',(-1.0,0.0,0.0)); 29#20=VECTOR('',#19,1.0); 30#21=LINE('',#5,#20); 31#22=EDGE_CURVE('',#6,#2,#21,.T.); 32#23=DIRECTION('',(0.0,1.0,-1.0)); 33#24=VECTOR('',#23,1.0); 34#25=LINE('',#3,#24); 35#26=EDGE_CURVE('',#4,#8,#25,.T.); 36#27=DIRECTION('',(0.0,-1.0,0.0)); 37#28=VECTOR('',#27,1.0); 38#29=LINE('',#7,#28); 39#30=EDGE_CURVE('',#8,#2,#29,.T.); 40#31=DIRECTION('',(-1.0,0.0,-1.0)); 41#32=VECTOR('',#31,1.0); 42#33=LINE('',#3,#32); 43#34=EDGE_CURVE('',#4,#10,#33,.T.); 44#35=DIRECTION('',(1.0,0.0,0.0)); 45#36=VECTOR('',#35,1.0); 46#37=LINE('',#9,#36); 47#38=EDGE_CURVE('',#10,#2,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#14,.T.); 49#40=ORIENTED_EDGE('',$,$,#18,.T.); 50#41=ORIENTED_EDGE('',$,$,#22,.T.); 51#42=EDGE_LOOP('',(#39,#40,#41)); 52#43=DIRECTION('',(0.0,-1.0,0.0)); 53#44=DIRECTION('',(1.0,0.0,0.0)); 54#45=AXIS2_PLACEMENT_3D('',#1,#43,#44); 55#46=PLANE('',#45); 56#47=FACE_OUTER_BOUND('',#42,.T.); 57#48=ADVANCED_FACE('',(#47),#46,.T.); 58#49=ORIENTED_EDGE('',$,$,#14,.T.); 59#50=ORIENTED_EDGE('',$,$,#26,.T.); 60#51=ORIENTED_EDGE('',$,$,#30,.T.); 61#52=EDGE_LOOP('',(#49,#50,#51)); 62#53=DIRECTION('',(1.0,0.0,0.0)); 63#54=DIRECTION('',(0.0,1.0,0.0)); 64#55=AXIS2_PLACEMENT_3D('',#1,#53,#54); 65#56=PLANE('',#55); 66#57=FACE_OUTER_BOUND('',#52,.T.); 67#58=ADVANCED_FACE('',(#57),#56,.T.); 68#59=ORIENTED_EDGE('',$,$,#14,.T.); 69#60=ORIENTED_EDGE('',$,$,#34,.T.); 70#61=ORIENTED_EDGE('',$,$,#38,.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('',(#48,#58,#68)); 79#70=SHELL_BASED_SURFACE_MODEL('',(#69)); 80#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 81#9051=PRODUCT('Tsh225','Tsh225','',(#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;