step-examples/12-3a-shells/Tsh047.stp
Sources
- OCCT MANTIS#0030185
- OCCT MANTIS#0030534
- OCCT MANTIS#0030174 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A cylindrical face with a closed seam has been emitted as two half-cylinder faces sharing a seam edge. The kernel's face-unification step recognises both carry the same underlying `CYLINDRICAL_SURFACE` and merges them; but in doing so reuses the seam edge as an interior edge, producing a non-manifold result (the seam edge belongs to one merged face but is referenced twice).
Reproducer recipe
Two `ADVANCED_FACE`s on the same `CYLINDRICAL_SURFACE` (radius R, axis Z), parameter ranges `U=[0,π]` and `U=[π,2π]`, sharing two vertical seam edges along `U=0` and `U=π`. After merging, the seam at `U=0` is preserved but the merged face lists it twice in its outer wire.
Expected kernel behavior
never merge across a periodic seam; treat closed-surface seams as topology-relevant even when surface geometry is identical on both sides.
Notes
**See also**: Tsh046, Tfa016. Synonyms: "merging halves of cylinder produces non-manifold", "face unifier crosses periodic seam", "two half-cylinder faces collapse incorrectly", "seam edge listed twice after merge", "cylinder seam treated as interior".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(12) 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') == 2
Tier-3 assertions
n_faces_total == 2face[0].surface_type == "cylinder"face[0].quadric.radius == 1.0face[1].surface_type == "cylinder"face[1].quadric.radius == 1.0edge[0].curve_type == "circle"edge[0].analytic.radius == 1.0edge[2].curve_type == "circle"edge[2].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/* Tsh047: OPEN_SHELL with 2 ADVANCED_FACEs on same CYLINDRICAL_SURFACE (R=1, axis Z), split at U=0 and U=pi into two half-cylinders; shared seam edges at U=0 and U=pi are wired with opposite orientations; face unifier must NOT merge across periodic seam; seam edges ARE the mechanism in shell/face/edge topology */ 3HEADER; 4FILE_DESCRIPTION(('Tsh047'),'2;1'); 5FILE_NAME('Tsh047.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=CARTESIAN_POINT('',(1.0,0.0,1.0)); 12#3=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 13#4=CARTESIAN_POINT('',(-1.0,0.0,1.0)); 14#5=VERTEX_POINT('',#1); 15#6=VERTEX_POINT('',#2); 16#7=VERTEX_POINT('',#3); 17#8=VERTEX_POINT('',#4); 18#9=CARTESIAN_POINT('',(1.0,0.0,0.0)); 19#10=DIRECTION('',(0.0,0.0,1.0)); 20#11=VECTOR('',#10,1.0); 21#12=LINE('',#9,#11); 22#13=EDGE_CURVE('',#5,#6,#12,.T.); 23#14=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 24#15=DIRECTION('',(0.0,0.0,1.0)); 25#16=VECTOR('',#15,1.0); 26#17=LINE('',#14,#16); 27#18=EDGE_CURVE('',#7,#8,#17,.T.); 28#19=CARTESIAN_POINT('',(0.0,0.0,0.0)); 29#20=CARTESIAN_POINT('',(0.0,0.0,1.0)); 30#21=DIRECTION('',(0.0,0.0,1.0)); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=AXIS2_PLACEMENT_3D('',#19,#21,#22); 33#24=CIRCLE('',#23,1.0); 34#25=EDGE_CURVE('',#5,#7,#24,.T.); 35#26=AXIS2_PLACEMENT_3D('',#19,#21,#22); 36#27=CIRCLE('',#26,1.0); 37#28=EDGE_CURVE('',#7,#5,#27,.T.); 38#29=DIRECTION('',(0.0,0.0,-1.0)); 39#30=AXIS2_PLACEMENT_3D('',#20,#29,#22); 40#31=CIRCLE('',#30,1.0); 41#32=EDGE_CURVE('',#8,#6,#31,.T.); 42#33=AXIS2_PLACEMENT_3D('',#20,#29,#22); 43#34=CIRCLE('',#33,1.0); 44#35=EDGE_CURVE('',#6,#8,#34,.T.); 45#36=CARTESIAN_POINT('',(0.0,0.0,0.0)); 46#37=AXIS2_PLACEMENT_3D('',#36,#21,#22); 47#38=CYLINDRICAL_SURFACE('',#37,1.0); 48#39=ORIENTED_EDGE('',$,$,#13,.T.); 49#40=ORIENTED_EDGE('',$,$,#32,.T.); 50#41=ORIENTED_EDGE('',$,$,#18,.F.); 51#42=ORIENTED_EDGE('',$,$,#25,.T.); 52#43=EDGE_LOOP('',(#39,#40,#41,#42)); 53#44=ORIENTED_EDGE('',$,$,#13,.T.); 54#45=ORIENTED_EDGE('',$,$,#32,.F.); 55#46=ORIENTED_EDGE('',$,$,#18,.F.); 56#47=ORIENTED_EDGE('',$,$,#25,.F.); 57#48=EDGE_LOOP('',(#44,#45,#46,#47)); 58#49=FACE_OUTER_BOUND('',#48,.T.); 59#50=ADVANCED_FACE('',(#49),#38,.T.); 60#51=ORIENTED_EDGE('',$,$,#18,.T.); 61#52=ORIENTED_EDGE('',$,$,#35,.F.); 62#53=ORIENTED_EDGE('',$,$,#13,.F.); 63#54=ORIENTED_EDGE('',$,$,#28,.F.); 64#55=EDGE_LOOP('',(#51,#52,#53,#54)); 65#56=FACE_OUTER_BOUND('',#55,.T.); 66#57=ADVANCED_FACE('',(#56),#38,.T.); 67#58=OPEN_SHELL('',(#50,#57)); 68#59=SHELL_BASED_SURFACE_MODEL('',(#58)); 69#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 70#9051=PRODUCT('Tsh047','Tsh047','',(#9050)); 71#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 72#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 73#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 74#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 75#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 76#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 77#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 78#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 79#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 80#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#59),#9060); 81#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 82ENDSEC; 83END-ISO-10303-21;