step-examples/12-3a-shells/Tsh062.stp
Sources
- OCCT MANTIS#0032332
- OCCT MANTIS#0032213
- OCCT MANTIS#0031187
- OCCT MANTIS#0030905
- OCCT MANTIS#0027000
- OCCT MANTIS#0026644
- OCCT MANTIS#0026489
- OCCT MANTIS#0026219
- OCCT GitHub#876
- OCCT GitHub#624
- OCCT GitHub#372 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A class of long-running regressions in same-surface face merging manifests as "valid input → invalid output" where the failure mode varies per case (missing face, duplicated edge, inverted normal) but the input pattern is consistent: complex Boolean-result shape with non-trivial topology. Typical fixture precondition: an OPEN_SHELL of multiple ADVANCED_FACEs (e.g., 5) each on its own CYLINDRICAL_SURFACE, and each cylinder having a degenerate seam edge where the start and end VERTEX_POINTs share identical coordinates but are separate entities (e.g., #104 and #106 both at (1,0,0)). The kernel-branch defect is "no post-merge invariant check"; the merge writes its result without running validity check.
Reproducer recipe
Compound from Boolean-fuse of 5 CYLINDRICAL_SURFACE faces at random angles, often with degenerate seam edges (distinct VERTEX_POINTs sharing coords); pass through unify; check shape validity (no duplicate edges, every edge incident to ≤ 2 faces, every face's wires closed).
Expected kernel behavior
Reject with E_INVALID_TOPOLOGY diagnostic, or heal and accept: every shape-modifying operation runs a topology validity check on its output; if the output is invalid, the algorithm reports failure (rejects) and leaves the input shape unchanged.
Notes
**See also**: Tsh053, Tsh057. Synonyms: "face merge produces invalid topology", "no post-merge validity check", "valid input invalid output after merge", "Boolean-fuse result corrupted by unifier", "merge of cylinder faces with degenerate seam fails".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(15) ifc=schema_n/a
Closure intent
ambiguous — the open shell is an incidental scaffold for a non-closure-related test.
Byte assertions
contains(b'OPEN_SHELL')contains(b'CYLINDRICAL_SURFACE')count_entity_def(b'ADVANCED_FACE') == 5
Tier-3 assertions
n_faces_total == 5face[0].surface_type == "cylinder"face[0].quadric.radius == 1.0face[1].surface_type == "cylinder"face[1].quadric.radius == 1.0face[2].surface_type == "cylinder"face[2].quadric.radius == 1.0face[3].surface_type == "cylinder"face[3].quadric.radius == 1.0edge[0].curve_type == "circle"edge[0].analytic.radius == 1.0edge[1].curve_type == "circle"edge[1].analytic.radius == 1.0edge[2].curve_type == "circle"edge[2].analytic.radius == 1.0edge[3].curve_type == "circle"edge[3].analytic.radius == 1.0
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/* Tsh062: OPEN_SHELL with 5 ADVANCED_FACEs each on a distinct CYLINDRICAL_SURFACE (R=1); each cylinder has a degenerate seam edge: start and end VERTEX_POINTs share identical coordinates but are separate entities (IS wired into each EDGE_CURVE); coordinate-coincident-but-distinct VERTEX_POINT pairs ARE the mechanism; same-surface merge writes result without post-merge validity check; fix: run topology validity check after every merge (no duplicate edges, every edge <=2 incident faces, all face wires closed); revert on failure */ 3HEADER; 4FILE_DESCRIPTION(('Tsh062'),'2;1'); 5FILE_NAME('Tsh062.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=CYLINDRICAL_SURFACE('',#4,1.0); 15#6=CARTESIAN_POINT('',(1.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=VERTEX_POINT('',#6); 18#9=VERTEX_POINT('',#7); 19#10=CARTESIAN_POINT('',(1.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#10,#12); 23#14=EDGE_CURVE('',#8,#9,#13,.T.); 24#15=CARTESIAN_POINT('',(0.0,0.0,0.0)); 25#16=AXIS2_PLACEMENT_3D('',#15,#2,#3); 26#17=CIRCLE('',#16,1.0); 27#18=EDGE_CURVE('',#8,#9,#17,.T.); 28#19=ORIENTED_EDGE('',$,$,#18,.T.); 29#20=ORIENTED_EDGE('',$,$,#14,.T.); 30#21=EDGE_LOOP('',(#19,#20)); 31#22=FACE_OUTER_BOUND('',#21,.T.); 32#23=ADVANCED_FACE('',(#22),#5,.T.); 33#24=CARTESIAN_POINT('',(3.0,0.0,0.0)); 34#25=DIRECTION('',(0.0,0.0,1.0)); 35#26=DIRECTION('',(1.0,0.0,0.0)); 36#27=AXIS2_PLACEMENT_3D('',#24,#25,#26); 37#28=CYLINDRICAL_SURFACE('',#27,1.0); 38#29=CARTESIAN_POINT('',(4.0,0.0,0.0)); 39#30=CARTESIAN_POINT('',(4.0,0.0,0.0)); 40#31=VERTEX_POINT('',#29); 41#32=VERTEX_POINT('',#30); 42#33=CARTESIAN_POINT('',(4.0,0.0,0.0)); 43#34=DIRECTION('',(0.0,0.0,1.0)); 44#35=VECTOR('',#34,1.0); 45#36=LINE('',#33,#35); 46#37=EDGE_CURVE('',#31,#32,#36,.T.); 47#38=CARTESIAN_POINT('',(3.0,0.0,0.0)); 48#39=AXIS2_PLACEMENT_3D('',#38,#25,#26); 49#40=CIRCLE('',#39,1.0); 50#41=EDGE_CURVE('',#31,#32,#40,.T.); 51#42=ORIENTED_EDGE('',$,$,#41,.T.); 52#43=ORIENTED_EDGE('',$,$,#37,.T.); 53#44=EDGE_LOOP('',(#42,#43)); 54#45=FACE_OUTER_BOUND('',#44,.T.); 55#46=ADVANCED_FACE('',(#45),#28,.T.); 56#47=CARTESIAN_POINT('',(6.0,0.0,0.0)); 57#48=DIRECTION('',(0.0,0.0,1.0)); 58#49=DIRECTION('',(1.0,0.0,0.0)); 59#50=AXIS2_PLACEMENT_3D('',#47,#48,#49); 60#51=CYLINDRICAL_SURFACE('',#50,1.0); 61#52=CARTESIAN_POINT('',(7.0,0.0,0.0)); 62#53=CARTESIAN_POINT('',(7.0,0.0,0.0)); 63#54=VERTEX_POINT('',#52); 64#55=VERTEX_POINT('',#53); 65#56=CARTESIAN_POINT('',(7.0,0.0,0.0)); 66#57=DIRECTION('',(0.0,0.0,1.0)); 67#58=VECTOR('',#57,1.0); 68#59=LINE('',#56,#58); 69#60=EDGE_CURVE('',#54,#55,#59,.T.); 70#61=CARTESIAN_POINT('',(6.0,0.0,0.0)); 71#62=AXIS2_PLACEMENT_3D('',#61,#48,#49); 72#63=CIRCLE('',#62,1.0); 73#64=EDGE_CURVE('',#54,#55,#63,.T.); 74#65=ORIENTED_EDGE('',$,$,#64,.T.); 75#66=ORIENTED_EDGE('',$,$,#60,.T.); 76#67=EDGE_LOOP('',(#65,#66)); 77#68=FACE_OUTER_BOUND('',#67,.T.); 78#69=ADVANCED_FACE('',(#68),#51,.T.); 79#70=CARTESIAN_POINT('',(0.0,3.0,0.0)); 80#71=DIRECTION('',(0.0,0.0,1.0)); 81#72=DIRECTION('',(1.0,0.0,0.0)); 82#73=AXIS2_PLACEMENT_3D('',#70,#71,#72); 83#74=CYLINDRICAL_SURFACE('',#73,1.0); 84#75=CARTESIAN_POINT('',(1.0,3.0,0.0)); 85#76=CARTESIAN_POINT('',(1.0,3.0,0.0)); 86#77=VERTEX_POINT('',#75); 87#78=VERTEX_POINT('',#76); 88#79=CARTESIAN_POINT('',(1.0,3.0,0.0)); 89#80=DIRECTION('',(0.0,0.0,1.0)); 90#81=VECTOR('',#80,1.0); 91#82=LINE('',#79,#81); 92#83=EDGE_CURVE('',#77,#78,#82,.T.); 93#84=CARTESIAN_POINT('',(0.0,3.0,0.0)); 94#85=AXIS2_PLACEMENT_3D('',#84,#71,#72); 95#86=CIRCLE('',#85,1.0); 96#87=EDGE_CURVE('',#77,#78,#86,.T.); 97#88=ORIENTED_EDGE('',$,$,#87,.T.); 98#89=ORIENTED_EDGE('',$,$,#83,.T.); 99#90=EDGE_LOOP('',(#88,#89)); 100#91=FACE_OUTER_BOUND('',#90,.T.); 101#92=ADVANCED_FACE('',(#91),#74,.T.); 102#93=CARTESIAN_POINT('',(3.0,3.0,0.0)); 103#94=DIRECTION('',(0.0,0.0,1.0)); 104#95=DIRECTION('',(1.0,0.0,0.0)); 105#96=AXIS2_PLACEMENT_3D('',#93,#94,#95); 106#97=CYLINDRICAL_SURFACE('',#96,1.0); 107#98=CARTESIAN_POINT('',(4.0,3.0,0.0)); 108#99=CARTESIAN_POINT('',(4.0,3.0,0.0)); 109#100=VERTEX_POINT('',#98); 110#101=VERTEX_POINT('',#99); 111#102=CARTESIAN_POINT('',(4.0,3.0,0.0)); 112#103=DIRECTION('',(0.0,0.0,1.0)); 113#104=VECTOR('',#103,1.0); 114#105=LINE('',#102,#104); 115#106=EDGE_CURVE('',#100,#101,#105,.T.); 116#107=CARTESIAN_POINT('',(3.0,3.0,0.0)); 117#108=AXIS2_PLACEMENT_3D('',#107,#94,#95); 118#109=CIRCLE('',#108,1.0); 119#110=EDGE_CURVE('',#100,#101,#109,.T.); 120#111=ORIENTED_EDGE('',$,$,#110,.T.); 121#112=ORIENTED_EDGE('',$,$,#106,.T.); 122#113=EDGE_LOOP('',(#111,#112)); 123#114=FACE_OUTER_BOUND('',#113,.T.); 124#115=ADVANCED_FACE('',(#114),#97,.T.); 125#116=OPEN_SHELL('',(#23,#46,#69,#92,#115)); 126#117=SHELL_BASED_SURFACE_MODEL('',(#116)); 127#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 128#9051=PRODUCT('Tsh062','Tsh062','',(#9050)); 129#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 130#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 131#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 132#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 133#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 134#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 135#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 136#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 137#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 138#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#117),#9060); 139#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 140ENDSEC; 141END-ISO-10303-21;