Tsh261 — Two hanging vertices project onto the same interior stretch of one boundary edge a hair's breadth apart: only one cut node is created

§12.3a shells (sub-class: sewing hanging-vertex / T-junction conformalization — `sew-cutting-hanging-vertex-split`)

P3 — cosmetic / metadata-only

topology

Sources

Description

An `OPEN_SHELL` with THREE planar triangular `ADVANCED_FACE`s. Face LONG (plane z=0) carries the reference `EDGE_CURVE` running x=1, y:[0,2] (apex off at (-3,1,0)). Face UP (plane z=+0.4) has a vertex at (1,0.9,0.4) hanging 0.4 above the reference edge's interior, plus an edge from (1,0.9,0.4) to (1,2,0.4) running parallel to the reference edge. Face DOWN (plane z=-0.4) has a vertex at (1,0.92,-0.4) hanging 0.4 below the reference edge. Both hanging vertices project onto the SAME reference edge, at y=0.9 and y=0.92 — 0.02 apart, i.e. inside 10% of their own 0.4 projection distance. Putting them on OPPOSITE sides of the reference edge is what makes the case reachable: the two vertices are 0.8 apart, more than the 0.6 sewing tolerance, so the tolerance-driven vertex gluing that precedes the split leaves them as two distinct nodes, while both still project onto the same tiny stretch of the edge. No pcurves; 3D-`EDGE_CURVE`-only convention as in Tsh260.

Reproducer recipe

`OPEN_SHELL` with three planar triangular `ADVANCED_FACE`s: one hosting a long straight `EDGE_CURVE` (x=1, y:[0,2], z=0); a second, offset +0.4 in z, whose first vertex hangs over that edge's interior at y=0.9 and whose first edge runs parallel to it spanning y:[0.9,2.0]; a third, offset −0.4 in z, whose first vertex hangs under the same edge at y=0.92. Sew at tolerance 0.6 (both hanging vertices within tolerance of the reference edge, the two vertices 0.8 apart so they are not glued to each other).

Expected kernel behavior

when the shape is passed through the standard shell-sewing pass, the first hanging vertex creates a cut node at its projection (y=0.9) and the second, whose projection is a hair's breadth away (0.02, within 10% of its own 0.4 projection distance), is bound to that same node instead of producing a redundant second cut 0.02 further along; the reference edge is therefore replaced by exactly TWO collinear sub-edges, not three, and the upper section stays span-matched to Face UP's parallel edge so the boundary is genuinely conformalized.

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 3 faces and 9 unique edges (`TopTools_IndexedMapOfShape`), the reference edge `[(1,0,0),(1,2,0)]` intact. Feeding the read shape to `BRepBuilderAPI_Sewing(0.6, sew=True, analysis=True, cutting=True, nonmanifold=False)` and calling `Perform()` replaces the reference edge with exactly TWO collinear sub-edges — `[(1,0,0),(1,0.9,·)]` and `[(1,0.9,·),(1,2,·)]` — cut ONLY at y=0.9. There is no cut at y=0.92: the second hanging vertex was snapped onto the node the first created. `NbContigousEdges()==1` (the upper section merges with Face UP's parallel edge), `NbMultipleEdges()==0`. Threshold sweep on the DOWN vertex's y (its projection distance held at 0.4, so the predicted flip is at 0.1×0.4 = 0.04): y=0.90 / 0.92 / 0.935 / 0.939 / 0.9400 all give `NbContigousEdges()==1`; y=0.9401 / 0.941 / 0.945 / 0.96 / 1.00 all give `NbContigousEdges()==0` — past the threshold a redundant second cut appears at the second vertex's own projection, the reference edge is split into three sections, none matches Face UP's span, nothing merges, and the conformalization is lost. The flip is exactly at 0.0400 → 0.0401, matching `disProj*0.1` to four digits. Sewing is NOT on the default STEP read path (a default read leaves both T-junctions non-conformal), so this fixture is oracle-invisible to the shape-count oracle and requires the sewing scaffold to observe. Synonyms: "two hanging vertices same edge one cut node", "redundant cut vertex suppressed sewing", "adaptive snap tolerance projected node STEP", "CreateCuttingNodes snap to existing cutting vertex", "T-junction near-duplicate projection conformalize".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(21) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh261: OPEN_SHELL with THREE planar ADVANCED_FACEs. Face LONG (z=0) carries the reference edge x=1, y:[0,2]. Face UP (z=+0.4) has a vertex hanging over the reference edge's interior at y=0.9 and an edge spanning y:[0.9,2.0] parallel to it. Face DOWN (z=-0.4) has a vertex hanging under the reference edge at y=0.92 -- 0.02 from the first hanging vertex's projection, inside 10% of its own 0.4 projection distance. Both hanging vertices project onto the same interior stretch of one edge a hair's breadth apart; the second must be bound to the cut node the first created rather than adding a redundant second cut 0.02 away */
3HEADER;
4FILE_DESCRIPTION(('Tsh261'),'2;1');
5FILE_NAME('Tsh261.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('',(1.0,0.0,0.0));
11#2=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(1.0,2.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(-3.0,1.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(1.0,0.0,0.0));
17#8=DIRECTION('',(0.0,1.0,0.0));
18#9=VECTOR('',#8,2.0);
19#10=LINE('',#7,#9);
20#11=EDGE_CURVE('',#2,#4,#10,.T.);
21#12=CARTESIAN_POINT('',(1.0,2.0,0.0));
22#13=DIRECTION('',(-0.970142500145,-0.242535625036,0.0));
23#14=VECTOR('',#13,4.12310562562);
24#15=LINE('',#12,#14);
25#16=EDGE_CURVE('',#4,#6,#15,.T.);
26#17=CARTESIAN_POINT('',(-3.0,1.0,0.0));
27#18=DIRECTION('',(0.970142500145,-0.242535625036,0.0));
28#19=VECTOR('',#18,4.12310562562);
29#20=LINE('',#17,#19);
30#21=EDGE_CURVE('',#6,#2,#20,.T.);
31#22=ORIENTED_EDGE('',$,$,#11,.T.);
32#23=ORIENTED_EDGE('',$,$,#16,.T.);
33#24=ORIENTED_EDGE('',$,$,#21,.T.);
34#25=EDGE_LOOP('',(#22,#23,#24));
35#26=CARTESIAN_POINT('',(1.0,0.0,0.0));
36#27=DIRECTION('',(0.0,0.0,1.0));
37#28=DIRECTION('',(1.0,0.0,0.0));
38#29=AXIS2_PLACEMENT_3D('',#26,#27,#28);
39#30=PLANE('',#29);
40#31=FACE_OUTER_BOUND('',#25,.T.);
41#32=ADVANCED_FACE('',(#31),#30,.T.);
42#33=CARTESIAN_POINT('',(1.0,0.9,0.4));
43#34=VERTEX_POINT('',#33);
44#35=CARTESIAN_POINT('',(1.0,2.0,0.4));
45#36=VERTEX_POINT('',#35);
46#37=CARTESIAN_POINT('',(4.0,1.5,0.4));
47#38=VERTEX_POINT('',#37);
48#39=CARTESIAN_POINT('',(1.0,0.9,0.4));
49#40=DIRECTION('',(0.0,1.0,0.0));
50#41=VECTOR('',#40,1.1);
51#42=LINE('',#39,#41);
52#43=EDGE_CURVE('',#34,#36,#42,.T.);
53#44=CARTESIAN_POINT('',(1.0,2.0,0.4));
54#45=DIRECTION('',(0.986393923832,-0.164398987305,0.0));
55#46=VECTOR('',#45,3.04138126515);
56#47=LINE('',#44,#46);
57#48=EDGE_CURVE('',#36,#38,#47,.T.);
58#49=CARTESIAN_POINT('',(4.0,1.5,0.4));
59#50=DIRECTION('',(-0.980580675691,-0.196116135138,0.0));
60#51=VECTOR('',#50,3.05941170816);
61#52=LINE('',#49,#51);
62#53=EDGE_CURVE('',#38,#34,#52,.T.);
63#54=ORIENTED_EDGE('',$,$,#43,.T.);
64#55=ORIENTED_EDGE('',$,$,#48,.T.);
65#56=ORIENTED_EDGE('',$,$,#53,.T.);
66#57=EDGE_LOOP('',(#54,#55,#56));
67#58=CARTESIAN_POINT('',(1.0,0.9,0.4));
68#59=DIRECTION('',(0.0,0.0,1.0));
69#60=DIRECTION('',(1.0,0.0,0.0));
70#61=AXIS2_PLACEMENT_3D('',#58,#59,#60);
71#62=PLANE('',#61);
72#63=FACE_OUTER_BOUND('',#57,.T.);
73#64=ADVANCED_FACE('',(#63),#62,.T.);
74#65=CARTESIAN_POINT('',(1.0,0.92,-0.4));
75#66=VERTEX_POINT('',#65);
76#67=CARTESIAN_POINT('',(4.0,0.92,-0.4));
77#68=VERTEX_POINT('',#67);
78#69=CARTESIAN_POINT('',(4.0,1.5,-0.4));
79#70=VERTEX_POINT('',#69);
80#71=CARTESIAN_POINT('',(1.0,0.92,-0.4));
81#72=DIRECTION('',(1.0,0.0,0.0));
82#73=VECTOR('',#72,3.0);
83#74=LINE('',#71,#73);
84#75=EDGE_CURVE('',#66,#68,#74,.T.);
85#76=CARTESIAN_POINT('',(4.0,0.92,-0.4));
86#77=DIRECTION('',(0.0,1.0,0.0));
87#78=VECTOR('',#77,0.58);
88#79=LINE('',#76,#78);
89#80=EDGE_CURVE('',#68,#70,#79,.T.);
90#81=CARTESIAN_POINT('',(4.0,1.5,-0.4));
91#82=DIRECTION('',(-0.981819220437,-0.189818382618,0.0));
92#83=VECTOR('',#82,3.05555232323);
93#84=LINE('',#81,#83);
94#85=EDGE_CURVE('',#70,#66,#84,.T.);
95#86=ORIENTED_EDGE('',$,$,#75,.T.);
96#87=ORIENTED_EDGE('',$,$,#80,.T.);
97#88=ORIENTED_EDGE('',$,$,#85,.T.);
98#89=EDGE_LOOP('',(#86,#87,#88));
99#90=CARTESIAN_POINT('',(1.0,0.92,-0.4));
100#91=DIRECTION('',(0.0,0.0,1.0));
101#92=DIRECTION('',(1.0,0.0,0.0));
102#93=AXIS2_PLACEMENT_3D('',#90,#91,#92);
103#94=PLANE('',#93);
104#95=FACE_OUTER_BOUND('',#89,.T.);
105#96=ADVANCED_FACE('',(#95),#94,.T.);
106#97=OPEN_SHELL('tsh261_snap_to_existing_cut_node_shell',(#32,#64,#96));
107#98=SHELL_BASED_SURFACE_MODEL('',(#97));
108#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
109#9051=PRODUCT('Tsh261','Tsh261','',(#9050));
110#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
111#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
112#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
113#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
114#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
115#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
116#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
117#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
118#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
119#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#98),#9060);
120#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
121ENDSEC;
122END-ISO-10303-21;