step-examples/12-3a-shells/Tsh061.stp
Sources
- OCCT MANTIS#0026244
- OCCT MANTIS#0027309 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
After Boolean intersection of two complex shapes, the result has internal seam edges shared by three faces (a non-manifold interior edge). Same-surface face merging visits this edge from each incident face and records contradictory merge decisions, producing a shape that fails Boolean validity check ("InvalidMultiConnexity"; edge connected to too many faces in the result).
Reproducer recipe
Compound built from Boolean-intersect of two cylinders; the intersection introduces an interior seam edge with three incident faces. Unify; check `bopcheck`.
Expected kernel behavior
Heal and accept: normalize so non-manifold interior edges (≥3 incident faces) are not merge-eligible; preserve all incident-face records during traversal.
Notes
**See also**: Tsh019, Tfa032. Synonyms: "face merge corrupts non-manifold interior edge", "InvalidMultiConnexity error after Boolean", "edge connected to too many faces after merge", "non-manifold interior seam breaks unifier", "merge across non-manifold edge produces bad shape".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(26) ifc=schema_n/a
Byte assertions
count_entity_def(b'ADVANCED_FACE') == 4
Tier-3 assertions
n_faces_total == 4
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh061: OPEN_SHELL with 4 ADVANCED_FACEs; one EDGE_CURVE shared by 3 distinct face EDGE_LOOPs; triple-incident non-manifold edge IS wired into 3 faces' EDGE_LOOP topology; same-surface merge visits non-manifold edge from each incident face; contradictory merge decisions produce InvalidMultiConnexity in result; fix: non-manifold interior edges (>=3 incident faces) must not be merge-eligible; preserve all incident-face records during traversal */ 3HEADER; 4FILE_DESCRIPTION(('Tsh061'),'2;1'); 5FILE_NAME('Tsh061.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,0.0)); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(1.0,1.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,1.0,0.0)); 19#10=CARTESIAN_POINT('',(2.0,0.0,0.0)); 20#11=CARTESIAN_POINT('',(2.0,1.0,0.0)); 21#12=CARTESIAN_POINT('',(0.0,2.0,0.0)); 22#13=CARTESIAN_POINT('',(1.0,2.0,0.0)); 23#14=VERTEX_POINT('',#6); 24#15=VERTEX_POINT('',#7); 25#16=VERTEX_POINT('',#8); 26#17=VERTEX_POINT('',#9); 27#18=VERTEX_POINT('',#10); 28#19=VERTEX_POINT('',#11); 29#20=VERTEX_POINT('',#12); 30#21=VERTEX_POINT('',#13); 31#22=DIRECTION('',(0.0,1.0,0.0)); 32#23=VECTOR('',#22,1.0); 33#24=LINE('',#7,#23); 34#25=EDGE_CURVE('',#15,#16,#24,.T.); 35#26=DIRECTION('',(1.0,0.0,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#6,#27); 38#29=EDGE_CURVE('',#14,#15,#28,.T.); 39#30=DIRECTION('',(-1.0,0.0,0.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#8,#31); 42#33=EDGE_CURVE('',#16,#17,#32,.T.); 43#34=DIRECTION('',(0.0,-1.0,0.0)); 44#35=VECTOR('',#34,1.0); 45#36=LINE('',#9,#35); 46#37=EDGE_CURVE('',#17,#14,#36,.T.); 47#38=ORIENTED_EDGE('',$,$,#29,.T.); 48#39=ORIENTED_EDGE('',$,$,#25,.T.); 49#40=ORIENTED_EDGE('',$,$,#33,.T.); 50#41=ORIENTED_EDGE('',$,$,#37,.T.); 51#42=EDGE_LOOP('',(#38,#39,#40,#41)); 52#43=FACE_OUTER_BOUND('',#42,.T.); 53#44=ADVANCED_FACE('',(#43),#5,.T.); 54#45=DIRECTION('',(1.0,0.0,0.0)); 55#46=VECTOR('',#45,1.0); 56#47=LINE('',#7,#46); 57#48=EDGE_CURVE('',#15,#18,#47,.T.); 58#49=DIRECTION('',(0.0,1.0,0.0)); 59#50=VECTOR('',#49,1.0); 60#51=LINE('',#10,#50); 61#52=EDGE_CURVE('',#18,#19,#51,.T.); 62#53=DIRECTION('',(-1.0,0.0,0.0)); 63#54=VECTOR('',#53,1.0); 64#55=LINE('',#11,#54); 65#56=EDGE_CURVE('',#19,#16,#55,.T.); 66#57=ORIENTED_EDGE('',$,$,#48,.T.); 67#58=ORIENTED_EDGE('',$,$,#52,.T.); 68#59=ORIENTED_EDGE('',$,$,#56,.T.); 69#60=ORIENTED_EDGE('',$,$,#25,.F.); 70#61=EDGE_LOOP('',(#57,#58,#59,#60)); 71#62=FACE_OUTER_BOUND('',#61,.T.); 72#63=ADVANCED_FACE('',(#62),#5,.T.); 73#64=DIRECTION('',(1.0,0.0,0.0)); 74#65=VECTOR('',#64,1.0); 75#66=LINE('',#9,#65); 76#67=EDGE_CURVE('',#17,#16,#66,.T.); 77#68=DIRECTION('',(0.0,1.0,0.0)); 78#69=VECTOR('',#68,1.0); 79#70=LINE('',#8,#69); 80#71=EDGE_CURVE('',#16,#21,#70,.T.); 81#72=DIRECTION('',(-1.0,0.0,0.0)); 82#73=VECTOR('',#72,1.0); 83#74=LINE('',#13,#73); 84#75=EDGE_CURVE('',#21,#20,#74,.T.); 85#76=DIRECTION('',(0.0,-1.0,0.0)); 86#77=VECTOR('',#76,1.0); 87#78=LINE('',#12,#77); 88#79=EDGE_CURVE('',#20,#17,#78,.T.); 89#80=DIRECTION('',(1.0,0.0,0.0)); 90#81=VECTOR('',#80,1.0); 91#82=LINE('',#6,#81); 92#83=EDGE_CURVE('',#14,#15,#82,.T.); 93#84=DIRECTION('',(-1.0,0.0,0.0)); 94#85=VECTOR('',#84,1.0); 95#86=LINE('',#8,#85); 96#87=EDGE_CURVE('',#16,#17,#86,.T.); 97#88=DIRECTION('',(0.0,-1.0,0.0)); 98#89=VECTOR('',#88,1.0); 99#90=LINE('',#9,#89); 100#91=EDGE_CURVE('',#17,#14,#90,.T.); 101#92=ORIENTED_EDGE('',$,$,#83,.T.); 102#93=ORIENTED_EDGE('',$,$,#25,.T.); 103#94=ORIENTED_EDGE('',$,$,#87,.T.); 104#95=ORIENTED_EDGE('',$,$,#91,.T.); 105#96=EDGE_LOOP('',(#92,#93,#94,#95)); 106#97=FACE_OUTER_BOUND('',#96,.T.); 107#98=ADVANCED_FACE('',(#97),#5,.T.); 108#99=DIRECTION('',(1.0,0.0,0.0)); 109#100=VECTOR('',#99,1.0); 110#101=LINE('',#9,#100); 111#102=EDGE_CURVE('',#17,#16,#101,.T.); 112#103=DIRECTION('',(0.0,1.0,0.0)); 113#104=VECTOR('',#103,1.0); 114#105=LINE('',#8,#104); 115#106=EDGE_CURVE('',#16,#21,#105,.T.); 116#107=DIRECTION('',(-1.0,0.0,0.0)); 117#108=VECTOR('',#107,1.0); 118#109=LINE('',#13,#108); 119#110=EDGE_CURVE('',#21,#20,#109,.T.); 120#111=DIRECTION('',(0.0,-1.0,0.0)); 121#112=VECTOR('',#111,1.0); 122#113=LINE('',#12,#112); 123#114=EDGE_CURVE('',#20,#17,#113,.T.); 124#115=ORIENTED_EDGE('',$,$,#102,.T.); 125#116=ORIENTED_EDGE('',$,$,#106,.T.); 126#117=ORIENTED_EDGE('',$,$,#110,.T.); 127#118=ORIENTED_EDGE('',$,$,#114,.T.); 128#119=EDGE_LOOP('',(#115,#116,#117,#118)); 129#120=FACE_OUTER_BOUND('',#119,.T.); 130#121=ADVANCED_FACE('',(#120),#5,.T.); 131#122=OPEN_SHELL('',(#44,#63,#98,#121)); 132#123=SHELL_BASED_SURFACE_MODEL('',(#122)); 133#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 134#9051=PRODUCT('Tsh061','Tsh061','',(#9050)); 135#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 136#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 137#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 138#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 139#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 140#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 141#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 142#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 143#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 144#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#123),#9060); 145#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 146ENDSEC; 147END-ISO-10303-21;