step-examples/12-3a-shells/Tsh262.stp
Sources
- occt-coverage PARTIAL audit, `exchange/problems.json` `sew-cutting-hanging-vertex-split` subvariant "seam-edge dual-pcurve propagation across the cut" (`BRepBuilderAPI_Sewing::CreateSections`, `BRepBuilderAPI_Sewing.cxx:4610-4653` retrieves the reversed pcurve when `BRep_Tool::IsClosed(sec,fac)`, `:4693-4704` re-attaches both, in orientation-dependent argument order, to every cut sub-edge
- the bound-registration precondition is `BRepBuilderAPI_Sewing.cxx:2565`). Companions: Tsh260 (base split), Tsh261 (snap-vs-new-node threshold) — both cut ordinary single-pcurve edges.
Description
An `OPEN_SHELL` with two `ADVANCED_FACE`s. Face CYL is a full 360° `CYLINDRICAL_SURFACE` (r=1, axis +Z, z:[0,2]) whose `FACE_OUTER_BOUND` is the standard four-element seam loop — bottom `CIRCLE` forward, one vertical `EDGE_CURVE` (1,0,0)→(1,0,2) FORWARD, top `CIRCLE` reversed, and THE SAME vertical `EDGE_CURVE` again REVERSED. Using one entity twice in one loop is what makes it a true seam: the reader gives that edge two distinct 2D curves on the one face, at u=0 and u=2π. Face TAB is a planar triangle (1.3,0,1)-(1.3,0,2)-(4,1.2,1.5); its first vertex hangs 0.3 off the seam and projects onto the seam's INTERIOR at z=1 while sharing no vertex with it, and its first edge runs parallel to the seam's upper half so the upper cut section has a merge partner.
Reproducer recipe
full-period `CYLINDRICAL_SURFACE` `ADVANCED_FACE` whose outer bound lists one vertical `EDGE_CURVE` twice with opposite `ORIENTED_EDGE` senses (bottom circle .T., seam .T., top circle .F., seam .F.); plus a second, planar `ADVANCED_FACE` with one vertex offset 0.3 from the seam line at the seam's mid-height and an edge running parallel to the seam's upper half. Sew at tolerance 0.5 with non-manifold mode on.
Expected kernel behavior
the hanging vertex is detected projecting onto the seam edge's interior and the seam is split there; because the edge being cut is a seam on a closed surface, BOTH its forward and reversed 2D curve representations are re-attached to each resulting sub-edge, so every sub-edge is still a seam (two pcurves, u=0 and u=2π) and the face's periodicity information survives the split.
Notes
Why we believe this test is valid — RUNTIME-SCAFFOLD verified against this fixture's own bytes (this worktree's `validation/.venv`, OCP/OCCT 7.8.1). Default STEP read → shape_null=False, 2 faces, 6 unique edges (`TopTools_IndexedMapOfShape`; the tier-3 `n_edges_total`=7 counts the seam edge once per loop occurrence); the seam edge `[(1,0,0),(1,0,2)]` is genuine — `BRep_Tool::IsClosed(edge, face_cyl)` is True and its forward/reversed pcurves evaluate to u=6.28319 / u=0.0 at the first parameter. Feeding the read shape to `BRepBuilderAPI_Sewing(0.5, sew=True, analysis=True, cutting=True, nonmanifold=True)` and calling `Perform()`: the seam edge is GONE, replaced by two collinear sub-edges cut exactly at the hanging vertex's projection z=1 — `[(1,0,0),(1.15,0,1)]` and `[(1.15,0,1),(1.15,0,2)]` (the upper section merged with Face TAB's parallel edge, hence the averaged x=1.15; `NbContigousEdges()==1`, `NbMultipleEdges()==0`). BOTH sub-edges still satisfy `BRep_Tool::IsClosed(sub, face_cyl)` and carry two distinct pcurves on the cylinder, evaluating forward/reversed to (6.28319, 0.0) on the lower section and (0.0, 6.28319) on the upper one — the orientation-dependent argument order of the re-attach. Two perturbations flip the outcome, so the split is genuinely driven by the hanging vertex: (a) same bytes with nonmanifold=False → no cut at all (a seam edge is listed against its single face twice, so it is only registered as a cuttable bound in non-manifold mode); (b) the tab offset widened 0.3 → 0.8, i.e. past the 0.5 tolerance → no cut, seam intact. Sewing is NOT on the default STEP read path, so this fixture is oracle-invisible to the shape-count oracle and requires the sewing scaffold to observe. Synonyms: "seam edge split dual pcurve sewing STEP", "cut seam edge keeps forward and reversed pcurve", "cylinder seam T-junction hanging vertex", "CreateSections seam pcurve propagation", "periodicity lost when seam edge split".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(13) ifc=schema_n/a
Byte assertions
count_entity_def(b'CYLINDRICAL_SURFACE') == 1count_entity_def(b'ADVANCED_FACE') == 2count_entity_def(b'EDGE_CURVE') == 6count_entity_def(b'OPEN_SHELL') == 1
Tier-3 assertions
shape_null == Falsen_faces_total == 2face[0].surface_type == "plane"face[1].surface_type == "cylinder"face[1].quadric.radius == 1.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh262: OPEN_SHELL with a full-period CYLINDRICAL_SURFACE face whose FACE_OUTER_BOUND uses one vertical EDGE_CURVE TWICE (forward and reversed) as a true seam, plus a planar triangular face whose vertex hangs 0.3 off that seam and projects onto its interior at z=1 without sharing a vertex with it -- a non-conformal T-junction landing on a seam edge, so the conformalizing split has to carry both of the seam's 2D curve representations onto each sub-edge */ 3HEADER; 4FILE_DESCRIPTION(('Tsh262'),'2;1'); 5FILE_NAME('Tsh262.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('',(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=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(1.0,0.0,2.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 23#14=CIRCLE('',#13,1.0); 24#15=EDGE_CURVE('',#7,#7,#14,.T.); 25#16=CARTESIAN_POINT('',(0.0,0.0,2.0)); 26#17=DIRECTION('',(0.0,0.0,1.0)); 27#18=DIRECTION('',(1.0,0.0,0.0)); 28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18); 29#20=CIRCLE('',#19,1.0); 30#21=EDGE_CURVE('',#9,#9,#20,.T.); 31#22=CARTESIAN_POINT('',(1.0,0.0,0.0)); 32#23=DIRECTION('',(0.0,0.0,1.0)); 33#24=VECTOR('',#23,2.0); 34#25=LINE('',#22,#24); 35#26=EDGE_CURVE('',#7,#9,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#15,.T.); 37#28=ORIENTED_EDGE('',$,$,#26,.T.); 38#29=ORIENTED_EDGE('',$,$,#21,.F.); 39#30=ORIENTED_EDGE('',$,$,#26,.F.); 40#31=EDGE_LOOP('',(#27,#28,#29,#30)); 41#32=FACE_OUTER_BOUND('',#31,.T.); 42#33=ADVANCED_FACE('',(#32),#5,.T.); 43#34=CARTESIAN_POINT('',(1.3,0.0,1.0)); 44#35=VERTEX_POINT('',#34); 45#36=CARTESIAN_POINT('',(1.3,0.0,2.0)); 46#37=VERTEX_POINT('',#36); 47#38=CARTESIAN_POINT('',(4.0,1.2,1.5)); 48#39=VERTEX_POINT('',#38); 49#40=CARTESIAN_POINT('',(1.3,0.0,1.0)); 50#41=DIRECTION('',(0.0,0.0,1.0)); 51#42=VECTOR('',#41,1.0); 52#43=LINE('',#40,#42); 53#44=EDGE_CURVE('',#35,#37,#43,.T.); 54#45=CARTESIAN_POINT('',(1.3,0.0,2.0)); 55#46=DIRECTION('',(0.901001669759,0.40044518656,-0.166852161066)); 56#47=VECTOR('',#46,2.99666481275); 57#48=LINE('',#45,#47); 58#49=EDGE_CURVE('',#37,#39,#48,.T.); 59#50=CARTESIAN_POINT('',(4.0,1.2,1.5)); 60#51=DIRECTION('',(-0.901001669759,-0.40044518656,-0.166852161066)); 61#52=VECTOR('',#51,2.99666481275); 62#53=LINE('',#50,#52); 63#54=EDGE_CURVE('',#39,#35,#53,.T.); 64#55=ORIENTED_EDGE('',$,$,#44,.T.); 65#56=ORIENTED_EDGE('',$,$,#49,.T.); 66#57=ORIENTED_EDGE('',$,$,#54,.T.); 67#58=EDGE_LOOP('',(#55,#56,#57)); 68#59=CARTESIAN_POINT('',(1.3,0.0,1.0)); 69#60=DIRECTION('',(-0.406138466053,0.91381154862,0.0)); 70#61=DIRECTION('',(0.0,0.0,1.0)); 71#62=AXIS2_PLACEMENT_3D('',#59,#60,#61); 72#63=PLANE('',#62); 73#64=FACE_OUTER_BOUND('',#58,.T.); 74#65=ADVANCED_FACE('',(#64),#63,.T.); 75#66=OPEN_SHELL('tsh262_seam_edge_cut_dual_pcurve_shell',(#33,#65)); 76#67=SHELL_BASED_SURFACE_MODEL('',(#66)); 77#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 78#9051=PRODUCT('Tsh262','Tsh262','',(#9050)); 79#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 80#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 81#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 82#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 83#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 84#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 85#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 86#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 87#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 88#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#67),#9060); 89#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 90ENDSEC; 91END-ISO-10303-21;