step-examples/12-3a-shells/Tsh248.stp
Sources
- occt-coverage PARTIAL audit, `exchange/problems.json` `sew-nonmanifold-candidate-disambiguation` (`BRepBuilderAPI_Sewing::AnalysisNearestEdges`, `BRepBuilderAPI_Sewing.cxx:1360-1382,1394-1439`). M045 (the sole existing fixture) hits more than one raw non-manifold merge candidate only incidentally — its actual purpose is an unrelated attribute-loss demonstration — and every candidate lies on a flat, non-periodic surface, so the closed/periodic-surface disambiguation arm is never engaged.
Description
Three independent `OPEN_SHELL`s converge on one shared 3D line, each contributing its own free boundary edge coincident with the other two: two `ADVANCED_FACE`s on independent `CYLINDRICAL_SURFACE` entities (identical radius and axis, covering different angular ranges) plus one `ADVANCED_FACE` on a `PLANE` tangent to that cylinder along the same line — a genuine 3-way non-manifold junction where two of the three candidates sit on a surface that is inherently periodic (unlike M045's flat-only overlap), giving a closed-surface candidate check a live target to evaluate.
Reproducer recipe
Three `OPEN_SHELL`s wrapped together (`SHELL_BASED_SURFACE_MODEL` plus a `NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION` marker, mirroring the corpus's established non-manifold-body convention): `shell_cyl_a` (`CYLINDRICAL_SURFACE` radius 5, theta:[0,90 deg], z:[0,4]), `shell_cyl_b` (a second, independent `CYLINDRICAL_SURFACE` entity, same radius/axis, theta:[270,360 deg], z:[0,4]), `shell_plane_c` (`PLANE` at x=5, y:[-5,0], z:[0,4]) — each face contributes its own independent `EDGE_CURVE` at the identical 3D line x=5,y=0,z:[0,4].
Expected kernel behavior
resolve the 3-way candidacy by checking each candidate's actual parametric overlap on its own host surface (disqualifying any candidate that doesn't genuinely close the junction there) and by eliminating any candidate that is provably farther from a given reference edge than a closer alternative discovered while checking the other faces, so the genuinely-matching candidates fold into shared non-manifold topology rather than being merged indiscriminately or paired with the wrong neighbour.
Notes
Live-verified (this worktree's OCP/OCCT 7.8.1, runtime sewing scaffold, non-manifold mode enabled): before merging, the three shells present 3 faces / 12 edges / 24 vertices with 7 free edges; after merging, one edge comes back shared by all three faces (a genuine 3-way non-manifold edge) plus two further edges each shared by exactly two faces (12 edges before merging become 14 after, from the candidate-splitting/reconstruction the disambiguation performs) — a materially richer, more decisive outcome than the identical scaffold run against M045 (which yields only a single incidental 2-face edge, `NbContigousEdges()==1` vs. this fixture's `2`, no genuine 3-face edge at all). The default STEP-read path itself is unaffected by the marker entity (both healing settings report the identical 3-shell shape), confirming the file is genuinely reachable and the non-manifold-merge mechanism is exercised purely by the sewing operator, not by any read-time side effect. Synonyms: "three shells meet at one edge", "non-manifold candidate disambiguation cylindrical seam", "N-way sewing candidate elimination", "closed surface merge candidate check", "multiple raw candidates one work edge". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(27) ifc=schema_n/a
Byte assertions
count_entity_def(b'CYLINDRICAL_SURFACE') == 2count_entity_def(b'OPEN_SHELL') == 3contains(b'NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION')
Tier-3 assertions
n_faces_total == 3n_edges_total == 12n_vertices_total == 24face[0].surface_type == "cylinder"face[1].surface_type == "cylinder"face[2].surface_type == "plane"
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/* Tsh248: THREE independent OPEN_SHELLs wrapped in NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION: shell_cyl_a (CYLINDRICAL_SURFACE radius 5, theta:[0,90], z:[0,4]), shell_cyl_b (separate CYLINDRICAL_SURFACE entity, same radius/axis, theta:[270,360], z:[0,4]), shell_plane_c (PLANE at x=5, y:[-5,0], z:[0,4]) â all three contribute an independent EDGE_CURVE at the identical 3D generatrix line x=5,y=0,z:[0,4], a genuine 3-way non-manifold junction with two candidates on a surface that reports itself U-closed, purpose-built to exercise BRepBuilderAPI_Sewing::AnalysisNearestEdges' N-way candidate disambiguation on a closed/periodic surface, not M045's planar-only incidental overlap */ 3HEADER; 4FILE_DESCRIPTION(('Tsh248'),'2;1'); 5FILE_NAME('Tsh248.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(5.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(5.0,0.0,4.0)); 12#3=CARTESIAN_POINT('',(0.0,0.0,0.0)); 13#4=DIRECTION('',(0.0,0.0,1.0)); 14#5=DIRECTION('',(1.0,0.0,0.0)); 15#6=AXIS2_PLACEMENT_3D('',#3,#4,#5); 16#7=CYLINDRICAL_SURFACE('',#6,5.0); 17#8=VERTEX_POINT('',#1); 18#9=VERTEX_POINT('',#2); 19#10=DIRECTION('',(0.0,0.0,1.0)); 20#11=VECTOR('',#10,4.0); 21#12=LINE('',#1,#11); 22#13=EDGE_CURVE('cyl_a_seam_candidate',#8,#9,#12,.T.); 23#14=CARTESIAN_POINT('',(0.0,5.0,0.0)); 24#15=CARTESIAN_POINT('',(0.0,5.0,4.0)); 25#16=VERTEX_POINT('',#14); 26#17=VERTEX_POINT('',#15); 27#18=VECTOR('',#10,4.0); 28#19=LINE('',#14,#18); 29#20=EDGE_CURVE('',#16,#17,#19,.T.); 30#21=CARTESIAN_POINT('',(0.0,0.0,0.0)); 31#22=DIRECTION('',(0.0,0.0,1.0)); 32#23=DIRECTION('',(1.0,0.0,0.0)); 33#24=AXIS2_PLACEMENT_3D('',#21,#22,#23); 34#25=CIRCLE('',#24,5.0); 35#26=EDGE_CURVE('',#8,#16,#25,.T.); 36#27=CARTESIAN_POINT('',(0.0,0.0,4.0)); 37#28=DIRECTION('',(0.0,0.0,1.0)); 38#29=DIRECTION('',(1.0,0.0,0.0)); 39#30=AXIS2_PLACEMENT_3D('',#27,#28,#29); 40#31=CIRCLE('',#30,5.0); 41#32=EDGE_CURVE('',#17,#9,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#13,.T.); 43#34=ORIENTED_EDGE('',$,$,#26,.T.); 44#35=ORIENTED_EDGE('',$,$,#20,.T.); 45#36=ORIENTED_EDGE('',$,$,#32,.T.); 46#37=EDGE_LOOP('',(#33,#34,#35,#36)); 47#38=FACE_OUTER_BOUND('',#37,.T.); 48#39=ADVANCED_FACE('cyl_a_face',(#38),#7,.T.); 49#40=OPEN_SHELL('cyl_a_shell',(#39)); 50#41=CARTESIAN_POINT('',(0.0,0.0,0.0)); 51#42=DIRECTION('',(0.0,0.0,1.0)); 52#43=DIRECTION('',(1.0,0.0,0.0)); 53#44=AXIS2_PLACEMENT_3D('',#41,#42,#43); 54#45=CYLINDRICAL_SURFACE('',#44,5.0); 55#46=VERTEX_POINT('',#1); 56#47=VERTEX_POINT('',#2); 57#48=DIRECTION('',(0.0,0.0,1.0)); 58#49=VECTOR('',#48,4.0); 59#50=LINE('',#1,#49); 60#51=EDGE_CURVE('cyl_b_seam_candidate',#46,#47,#50,.T.); 61#52=CARTESIAN_POINT('',(0.0,-5.0,0.0)); 62#53=CARTESIAN_POINT('',(0.0,-5.0,4.0)); 63#54=VERTEX_POINT('',#52); 64#55=VERTEX_POINT('',#53); 65#56=VECTOR('',#48,4.0); 66#57=LINE('',#52,#56); 67#58=EDGE_CURVE('',#54,#55,#57,.T.); 68#59=CARTESIAN_POINT('',(0.0,0.0,0.0)); 69#60=DIRECTION('',(0.0,0.0,1.0)); 70#61=DIRECTION('',(1.0,0.0,0.0)); 71#62=AXIS2_PLACEMENT_3D('',#59,#60,#61); 72#63=CIRCLE('',#62,5.0); 73#64=EDGE_CURVE('',#46,#54,#63,.T.); 74#65=CARTESIAN_POINT('',(0.0,0.0,4.0)); 75#66=DIRECTION('',(0.0,0.0,1.0)); 76#67=DIRECTION('',(1.0,0.0,0.0)); 77#68=AXIS2_PLACEMENT_3D('',#65,#66,#67); 78#69=CIRCLE('',#68,5.0); 79#70=EDGE_CURVE('',#55,#47,#69,.T.); 80#71=ORIENTED_EDGE('',$,$,#51,.T.); 81#72=ORIENTED_EDGE('',$,$,#64,.T.); 82#73=ORIENTED_EDGE('',$,$,#58,.T.); 83#74=ORIENTED_EDGE('',$,$,#70,.T.); 84#75=EDGE_LOOP('',(#71,#72,#73,#74)); 85#76=FACE_OUTER_BOUND('',#75,.T.); 86#77=ADVANCED_FACE('cyl_b_face',(#76),#45,.T.); 87#78=OPEN_SHELL('cyl_b_shell',(#77)); 88#79=VERTEX_POINT('',#1); 89#80=VERTEX_POINT('',#2); 90#81=DIRECTION('',(0.0,0.0,1.0)); 91#82=VECTOR('',#81,4.0); 92#83=LINE('',#1,#82); 93#84=EDGE_CURVE('cyl_plane_c_seam_candidate',#79,#80,#83,.T.); 94#85=CARTESIAN_POINT('',(5.0,-5.0,0.0)); 95#86=CARTESIAN_POINT('',(5.0,-5.0,4.0)); 96#87=VERTEX_POINT('',#85); 97#88=VERTEX_POINT('',#86); 98#89=DIRECTION('',(0.0,-1.0,0.0)); 99#90=VECTOR('',#89,5.0); 100#91=LINE('',#2,#90); 101#92=EDGE_CURVE('',#80,#88,#91,.T.); 102#93=DIRECTION('',(0.0,0.0,-1.0)); 103#94=VECTOR('',#93,4.0); 104#95=LINE('',#86,#94); 105#96=EDGE_CURVE('',#88,#87,#95,.T.); 106#97=DIRECTION('',(0.0,1.0,0.0)); 107#98=VECTOR('',#97,5.0); 108#99=LINE('',#85,#98); 109#100=EDGE_CURVE('',#87,#79,#99,.T.); 110#101=CARTESIAN_POINT('',(5.0,0.0,0.0)); 111#102=DIRECTION('',(1.0,0.0,0.0)); 112#103=DIRECTION('',(0.0,0.0,1.0)); 113#104=AXIS2_PLACEMENT_3D('',#101,#102,#103); 114#105=PLANE('',#104); 115#106=ORIENTED_EDGE('',$,$,#84,.T.); 116#107=ORIENTED_EDGE('',$,$,#92,.T.); 117#108=ORIENTED_EDGE('',$,$,#96,.T.); 118#109=ORIENTED_EDGE('',$,$,#100,.T.); 119#110=EDGE_LOOP('',(#106,#107,#108,#109)); 120#111=FACE_OUTER_BOUND('',#110,.T.); 121#112=ADVANCED_FACE('cyl_plane_c_face',(#111),#105,.T.); 122#113=OPEN_SHELL('cyl_plane_c_shell',(#112)); 123#114=SHELL_BASED_SURFACE_MODEL('',(#40,#78,#113)); 124#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 125#9051=PRODUCT('Tsh248','Tsh248','',(#9050)); 126#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 127#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 128#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 129#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 130#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 131#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 132#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 133#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 134#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 135#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#114),#9060); 136#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 137#9063=NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION('tsh248_nonmanifold_marker',(#114),#9060); 138ENDSEC; 139END-ISO-10303-21;