step-examples/12-3a-shells/Tsh260.stp
Sources
- occt-coverage GAP audit, `exchange/problems.json` `sew-cutting-hanging-vertex-split` (`BRepBuilderAPI_Sewing::Cutting` `BRepBuilderAPI_Sewing.cxx:3655-3687`
- `CreateCuttingNodes` `:4449-4463`
- `CreateSections` `:4532-4535,4581-4590`
- `ProjectPointsOnCurve` `:4308-4364`). This class had been re-scored PARTIAL→GAP (BACKLOG.md §(e), Wave-4 adjudication) after two independent sessions FAILED to reproduce Cutting firing — the withdrawal keyed on `Sewing::IsModified(edge)` (which stays False across a Cutting split) and on ambiguous single-hanging-vertex or shared-corner geometries. This fixture reproduces the split by result-topology inspection instead, using the geometry the class actually requires: a free edge whose *whole span* lies strictly interior to a longer edge.
Description
An `OPEN_SHELL` with TWO coplanar (z=0) triangular `ADVANCED_FACE`s, each on a `PLANE` (normal +Z). Face LONG carries a full-length reference edge `EDGE_CURVE` running x=1, y:[0,2] (apex off at (-3,1,0)). Face SHORT carries a free candidate `EDGE_CURVE` running x=1, y:[0.5,1.5] (apex off at (5,1,0)). The candidate edge's BOTH endpoints — (1,0.5,0) and (1,1.5,0) — lie STRICTLY in the interior of LONG's reference edge and share NO vertex with it: a genuine non-conformal T-junction (the two edges look connected in 3D but the topology does not share a node). No pcurves; both faces are planar quadric-free triangles reusing the corpus's 3D-`EDGE_CURVE`-only convention (as in Tsh246).
Reproducer recipe
`OPEN_SHELL` with two planar triangular `ADVANCED_FACE`s; one face hosts a long straight `EDGE_CURVE` (x=1, y:[0,2]); the other hosts a shorter straight `EDGE_CURVE` (x=1, y:[0.5,1.5]) whose two endpoints are strictly interior to the long edge's span and are not topologically shared with it.
Expected kernel behavior
when the shape is passed through `BRepBuilderAPI_Sewing` (the standard shell-sewing / STEP-shell-stitching pass), detect the two hanging vertices projecting onto the interior of the long reference edge and split that edge at the projected parameters (`Cutting`/`CreateCuttingNodes`/`CreateSections`), so the shared boundary becomes conformal; the single long edge is replaced by three collinear sub-edges partitioned exactly at the interior nodes.
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). `STEPControl_Reader.ReadFile` → `TransferRoots` loads shape_null=False with 2 faces and 6 unique edges (`TopTools_IndexedMapOfShape`), the long reference edge `[(1,0,0),(1,2,0)]` present intact. Feeding the read shape to `BRepBuilderAPI_Sewing(1e-2, sew=True, analysis=True, cutting=True, nonmanifold=False)` and calling `Perform()` yields a result with 7 unique edges in which the long reference edge is GONE and is replaced by exactly three collinear sub-edges — `[(1,0,0),(1,0.5,0)]`, `[(1,0.5,0),(1,1.5,0)]`, `[(1,1.5,0),(1,2,0)]` — cut precisely at the two hanging vertices (1,0.5,0)/(1,1.5,0) contributed by Face SHORT's candidate edge; `NbContigousEdges()==1` (the middle section merges with the candidate). This is a genuine `Cutting` edge split reachable from a plain STEP read plus the sewing pass — the runtime-scaffold demonstration BACKLOG.md §(e) recorded as never yet produced. Note `Sewing::IsModified(long_edge)` returns False (OCCT does not register Cutting sections under `Modified`), which is why prior IsModified-keyed probes missed it; the split is unambiguous in the result topology (three new interior nodes with no other possible source). Sewing is NOT on the default STEP read path (default read leaves the T-junction non-conformal), so this fixture is oracle-invisible to the shape-count oracle and requires the sewing scaffold to observe. Synonyms: "hanging vertex T-junction sewing split STEP", "BRepBuilderAPI_Sewing Cutting interior node edge split", "free edge endpoint on interior of another edge conformalize", "CreateCuttingNodes projected node edge partition", "non-conformal shell T-junction sew".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(14) ifc=schema_n/a
Byte assertions
count_entity_def(b'PLANE') == 2count_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 == 2n_edges_total == 6face[0].surface_type == "plane"face[1].surface_type == "plane"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh260: OPEN_SHELL with TWO ADVANCED_FACEs forming a non-conformal T-junction. Face LONG hosts a full-length reference edge x=1,y:[0,2] (#10). Face SHORT hosts a free candidate edge x=1,y:[0.5,1.5] (#46) whose BOTH endpoints (1,0.5,0)/(1,1.5,0) lie STRICTLY in the interior of LONG's reference edge, sharing no vertex with it. A hanging-vertex / T-junction: BRepBuilderAPI_Sewing::Cutting splits the reference edge at the two projected interior nodes so the boundary becomes conformal. shape_null=False; 2 faces; sewing scaffold required (Cutting is not on the default STEP read path). */ 3HEADER; 4FILE_DESCRIPTION(('Tsh260'),'2;1'); 5FILE_NAME('Tsh260.stp','2026-07-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,2.0,0.0)); 12#3=CARTESIAN_POINT('',(-3.0,1.0,0.0)); 13#4=VERTEX_POINT('',#1); 14#5=VERTEX_POINT('',#2); 15#6=VERTEX_POINT('',#3); 16#7=DIRECTION('',(0.0,1.0,0.0)); 17#8=VECTOR('',#7,2.0); 18#9=LINE('',#1,#8); 19#10=EDGE_CURVE('',#4,#5,#9,.T.); 20#11=DIRECTION('',(-0.9701425001453319,-0.24253562503633297,0.0)); 21#12=VECTOR('',#11,4.123105625617661); 22#13=LINE('',#2,#12); 23#14=EDGE_CURVE('',#5,#6,#13,.T.); 24#15=DIRECTION('',(0.9701425001453319,-0.24253562503633297,0.0)); 25#16=VECTOR('',#15,4.123105625617661); 26#17=LINE('',#3,#16); 27#18=EDGE_CURVE('',#6,#4,#17,.T.); 28#19=ORIENTED_EDGE('',$,$,#10,.T.); 29#20=ORIENTED_EDGE('',$,$,#14,.T.); 30#21=ORIENTED_EDGE('',$,$,#18,.T.); 31#22=EDGE_LOOP('',(#19,#20,#21)); 32#23=DIRECTION('',(0.0,0.0,1.0)); 33#24=DIRECTION('',(1.0,0.0,0.0)); 34#25=AXIS2_PLACEMENT_3D('',#1,#23,#24); 35#26=PLANE('',#25); 36#27=FACE_OUTER_BOUND('',#22,.T.); 37#28=ADVANCED_FACE('',(#27),#26,.T.); 38#29=CARTESIAN_POINT('',(1.0,0.5,0.0)); 39#30=CARTESIAN_POINT('',(5.0,1.0,0.0)); 40#31=CARTESIAN_POINT('',(1.0,1.5,0.0)); 41#32=VERTEX_POINT('',#29); 42#33=VERTEX_POINT('',#30); 43#34=VERTEX_POINT('',#31); 44#35=DIRECTION('',(0.9922778767136677,0.12403473458920846,0.0)); 45#36=VECTOR('',#35,4.031128874149275); 46#37=LINE('',#29,#36); 47#38=EDGE_CURVE('',#32,#33,#37,.T.); 48#39=DIRECTION('',(-0.9922778767136677,0.12403473458920846,0.0)); 49#40=VECTOR('',#39,4.031128874149275); 50#41=LINE('',#30,#40); 51#42=EDGE_CURVE('',#33,#34,#41,.T.); 52#43=DIRECTION('',(0.0,-1.0,0.0)); 53#44=VECTOR('',#43,1.0); 54#45=LINE('',#31,#44); 55#46=EDGE_CURVE('',#34,#32,#45,.T.); 56#47=ORIENTED_EDGE('',$,$,#38,.T.); 57#48=ORIENTED_EDGE('',$,$,#42,.T.); 58#49=ORIENTED_EDGE('',$,$,#46,.T.); 59#50=EDGE_LOOP('',(#47,#48,#49)); 60#51=DIRECTION('',(0.0,0.0,1.0)); 61#52=DIRECTION('',(1.0,0.0,0.0)); 62#53=AXIS2_PLACEMENT_3D('',#29,#51,#52); 63#54=PLANE('',#53); 64#55=FACE_OUTER_BOUND('',#50,.T.); 65#56=ADVANCED_FACE('',(#55),#54,.T.); 66#57=OPEN_SHELL('tsh260_tjunction_hanging_vertex_shell',(#28,#56)); 67#58=SHELL_BASED_SURFACE_MODEL('',(#57)); 68#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 69#9051=PRODUCT('Tsh260','Tsh260','',(#9050)); 70#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 71#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 72#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 73#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 74#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 75#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 76#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 77#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 78#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 79#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#58),#9060); 80#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 81ENDSEC; 82END-ISO-10303-21;