step-examples/12-3c-faces/Tfa249.stp
Sources
- closes TKShHealing coverage GAP `tkshh-splitting-vertex-face` (occt-coverage/tkshhealing audit, 2026-07-01/02). OCCT `ShapeAnalysis_CheckSmallFace::CheckSplittingVertices` (`ShapeAnalysis_CheckSmallFace.cxx:487`
- endpoint skip-guard `if (V.IsSame(V1) || V.IsSame(V2)) continue
- ` at line 533
- exact-hit skip `if (dist == 0.0) continue
- ` at line 539) and `ShapeFix_FixSmallFace::FixSplitFace`/`SplitOneFace` (`ShapeFix_FixSmallFace.cxx:500,525`), all @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`. Background: ~17 existing catalog fixtures are titled after this mechanism (Tfa010, Tfa079, Tfa085, Tfa094, Tfa098, Tfa104, Tfa117, Tfa118, Tfa129, Tfa136, Tfa145, Tfa149, Tfa163, Tfa169, Tfa173, Tfa183, Tfa210, Tfa239 — 18 read in the audit), but EVERY one encodes the "splitting" vertex as a genuine shared topological ENDPOINT of the edges it touches (e.g. Tfa010's bottom edge is pre-split into two `EDGE_CURVE`s at the vertex
- Tfa094 reuses an outer hex vertex verbatim) — exactly the case the line-533 skip-guard ignores. None place an unattached, independent vertex projecting onto an unrelated edge's interior — the actual trigger condition.
Description
`ADVANCED_FACE` on a `PLANE`: outer 4-edge 10×10 square wire where edge A(0,0,0)-B(10,0,0) is ONE uninterrupted `EDGE_CURVE` (never pre-split), plus an inner `FACE_BOUND` triangle wire (V1-V2-V3) whose vertex V1 is a NEW, independent `VERTEX_POINT` at (5.0, 0.0, 5.0E-8) — geometrically on the interior of edge AB (within its default 1e-7 tolerance) but topologically unrelated to it (V1 is only ever an endpoint of the two inner-wire edges, never of edge AB). The 5e-8 Z-offset is deliberate: the checker's own projection call skips an EXACT zero-distance hit (Sources, line 539), so a vertex placed mathematically exactly on the curve would NOT trigger the mechanism — it must be near-but-not-exactly on it, inside the tolerance zone.
Reproducer recipe
`ADVANCED_FACE` whose `FACE_OUTER_BOUND` wire has an uninterrupted edge A-B, plus a `FACE_BOUND` (or second wire) whose own vertex V is a distinct `VERTEX_POINT` entity (never referenced by edge A-B) placed within tolerance of, but not exactly on, A-B's curve interior. Runtime invocation (live-verified 2026-07-12, OCP 7.8.1): reconstruct the face directly via `BRepBuilderAPI_MakePolygon`/`BRepBuilderAPI_MakeFace` from this file's raw vertex/edge coordinates, then call small-face checking().splitting-vertices checking(face, mapEdges, mapParam, allVertCompound)` with an explicit `SetTolerance(1e-4)` — returns 2 (V1 visited once per adjacent inner-wire edge by the face's un-deduplicated vertex walk, both times identified as splitting edge AB's interior), with `mapEdges` binding V1 to edge AB. TWO pitfalls, both live-confirmed: (1) the checker's precision member is never initialized by its constructor, so omitting `SetTolerance` silently returns 0 regardless of geometry; (2) loading this file through the standard `STEPControl_Reader().TransferRoots()` pipeline does NOT preserve the untouched topology — every STEP face translation is unconditionally routed through `XSAlgo_AlgoContainer::ProcessShape` (`STEPControl_ActorRead.cxx` ~line 1660), which even with no resource sequence configured (and with no `Interface_Static` switch able to disable it) falls back to running `ShapeFix_Shape::Perform()` unconditionally, resolving the same T-junction via a different, already-covered wire-level repair first (observed: edge AB arrives already split in two at (5,0,0), i.e. V1 is by then a genuine shared endpoint — the fate of all 17 misnamed fixtures). Reproducing THIS mechanism requires bypassing that mandatory per-face default-healing pass.
Expected kernel behavior
the small-face analyzer's splitting-vertex check should flag V as a splitting vertex of edge A-B; the face-splitting repair should divide the face into two regular sub-faces along a synthetic edge from V to its projection.
Notes
Provenance_tier: bytes-sufficient. Fixture kind: scaffold (kernel-test-pair: this file's raw Part-21 entities provide the untouched, verified-genuine splitting-vertex setup; the specific checker must be invoked at runtime on a rebuilt face — see Reproducer recipe for the exact snippet and the two pitfalls, including the reader's mandatory default-healing pass that would otherwise resolve the T-junction via a different code path first). The un-initialized-precision behavior noted in the Reproducer is a real, separate finding worth its own future audit note. Do NOT rename or modify the 17 existing misleadingly-named fixtures listed in Sources — they demonstrate other real behaviors (out of scope for this entry; flagged for the maintainer to consider separately). Live oracle (2026-07-12): the standard reader path yields the Expected line below; the loaded edge count (12) exceeds this file's 11 raw `EDGE_CURVE` entities — byte-level evidence that the reader's default healing split edge AB during ordinary loading. Synonyms: "unattached vertex on edge interior", "genuine T-junction splitting vertex", "splitting vertex real trigger not shared endpoint", "vertex projects onto unrelated edge interior", "face split at interior vertex".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(25) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
contains(b"ADVANCED_FACE('',(#30,#53)")contains(b'5.0E-08')
Tier-3 assertions
shape_null == Falsen_faces_total == 2n_edges_total == 12n_vertices_total == 24
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tfa249: genuine CheckSplittingVertices trigger: face[0] outer wire has edge AB as ONE uninterrupted EDGE_CURVE A(0,0,0)-B(10,0,0) (never pre-split); a separate inner triangle wire (V1-V2-V3) has V1=(5,0,5e-8), a NEW independent VERTEX_POINT that is NOT a topological endpoint of edge AB, offset 5e-8 off AB's interior (within default 1e-7 tolerance, not exactly on it) -- V.IsSame(V1)||V.IsSame(V2) is FALSE for edge AB, unlike the ~17 existing misnamed CheckSplittingVertices/FixSplitFace fixtures which all encode the vertex as a genuine shared topological endpoint; companion 1x1 face ensures shape(1) */ 3HEADER; 4FILE_DESCRIPTION(('Tfa249'),'2;1'); 5FILE_NAME('Tfa249.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('',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(10.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(10.0,10.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,10.0,0.0)); 14#5=VERTEX_POINT('',#1); 15#6=VERTEX_POINT('',#2); 16#7=VERTEX_POINT('',#3); 17#8=VERTEX_POINT('',#4); 18#9=DIRECTION('',(1.0,0.0,0.0)); 19#10=VECTOR('',#9,10.0); 20#11=LINE('',#1,#10); 21#12=EDGE_CURVE('',#5,#6,#11,.T.); 22#13=DIRECTION('',(0.0,1.0,0.0)); 23#14=VECTOR('',#13,10.0); 24#15=LINE('',#2,#14); 25#16=EDGE_CURVE('',#6,#7,#15,.T.); 26#17=DIRECTION('',(-1.0,0.0,0.0)); 27#18=VECTOR('',#17,10.0); 28#19=LINE('',#3,#18); 29#20=EDGE_CURVE('',#7,#8,#19,.T.); 30#21=DIRECTION('',(0.0,-1.0,0.0)); 31#22=VECTOR('',#21,10.0); 32#23=LINE('',#4,#22); 33#24=EDGE_CURVE('',#8,#5,#23,.T.); 34#25=ORIENTED_EDGE('',$,$,#12,.T.); 35#26=ORIENTED_EDGE('',$,$,#16,.T.); 36#27=ORIENTED_EDGE('',$,$,#20,.T.); 37#28=ORIENTED_EDGE('',$,$,#24,.T.); 38#29=EDGE_LOOP('',(#25,#26,#27,#28)); 39#30=FACE_OUTER_BOUND('',#29,.T.); 40#31=CARTESIAN_POINT('',(5.0,0.0,5.0E-08)); 41#32=CARTESIAN_POINT('',(4.0,2.0,0.0)); 42#33=CARTESIAN_POINT('',(6.0,2.0,0.0)); 43#34=VERTEX_POINT('',#31); 44#35=VERTEX_POINT('',#32); 45#36=VERTEX_POINT('',#33); 46#37=DIRECTION('',(-0.4472135955,0.894427191,-2.2360679775E-08)); 47#38=VECTOR('',#37,2.2360679775); 48#39=LINE('',#31,#38); 49#40=EDGE_CURVE('',#34,#35,#39,.T.); 50#41=DIRECTION('',(1.0,0.0,0.0)); 51#42=VECTOR('',#41,2.0); 52#43=LINE('',#32,#42); 53#44=EDGE_CURVE('',#35,#36,#43,.T.); 54#45=DIRECTION('',(-0.4472135955,-0.894427191,2.2360679775E-08)); 55#46=VECTOR('',#45,2.2360679775); 56#47=LINE('',#33,#46); 57#48=EDGE_CURVE('',#36,#34,#47,.T.); 58#49=ORIENTED_EDGE('',$,$,#40,.T.); 59#50=ORIENTED_EDGE('',$,$,#44,.T.); 60#51=ORIENTED_EDGE('',$,$,#48,.T.); 61#52=EDGE_LOOP('',(#49,#50,#51)); 62#53=FACE_BOUND('',#52,.T.); 63#54=CARTESIAN_POINT('',(0.0,0.0,0.0)); 64#55=DIRECTION('',(0.0,0.0,1.0)); 65#56=DIRECTION('',(1.0,0.0,0.0)); 66#57=AXIS2_PLACEMENT_3D('',#54,#55,#56); 67#58=PLANE('',#57); 68#59=ADVANCED_FACE('',(#30,#53),#58,.T.); 69#60=CARTESIAN_POINT('',(20.0,0.0,0.0)); 70#61=CARTESIAN_POINT('',(21.0,0.0,0.0)); 71#62=CARTESIAN_POINT('',(21.0,1.0,0.0)); 72#63=CARTESIAN_POINT('',(20.0,1.0,0.0)); 73#64=VERTEX_POINT('',#60); 74#65=VERTEX_POINT('',#61); 75#66=VERTEX_POINT('',#62); 76#67=VERTEX_POINT('',#63); 77#68=DIRECTION('',(1.0,0.0,0.0)); 78#69=VECTOR('',#68,1.0); 79#70=LINE('',#60,#69); 80#71=EDGE_CURVE('',#64,#65,#70,.T.); 81#72=DIRECTION('',(0.0,1.0,0.0)); 82#73=VECTOR('',#72,1.0); 83#74=LINE('',#61,#73); 84#75=EDGE_CURVE('',#65,#66,#74,.T.); 85#76=DIRECTION('',(-1.0,0.0,0.0)); 86#77=VECTOR('',#76,1.0); 87#78=LINE('',#62,#77); 88#79=EDGE_CURVE('',#66,#67,#78,.T.); 89#80=DIRECTION('',(0.0,-1.0,0.0)); 90#81=VECTOR('',#80,1.0); 91#82=LINE('',#63,#81); 92#83=EDGE_CURVE('',#67,#64,#82,.T.); 93#84=ORIENTED_EDGE('',$,$,#71,.T.); 94#85=ORIENTED_EDGE('',$,$,#75,.T.); 95#86=ORIENTED_EDGE('',$,$,#79,.T.); 96#87=ORIENTED_EDGE('',$,$,#83,.T.); 97#88=EDGE_LOOP('',(#84,#85,#86,#87)); 98#89=CARTESIAN_POINT('',(20.0,0.0,0.0)); 99#90=DIRECTION('',(0.0,0.0,1.0)); 100#91=DIRECTION('',(1.0,0.0,0.0)); 101#92=AXIS2_PLACEMENT_3D('',#89,#90,#91); 102#93=PLANE('',#92); 103#94=FACE_OUTER_BOUND('',#88,.T.); 104#95=ADVANCED_FACE('',(#94),#93,.T.); 105#96=OPEN_SHELL('',(#59,#95)); 106#97=SHELL_BASED_SURFACE_MODEL('',(#96)); 107#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 108#9051=PRODUCT('Tfa249','Tfa249','',(#9050)); 109#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 110#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 111#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 112#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 113#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 114#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 115#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 116#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 117#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 118#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#97),#9060); 119#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 120ENDSEC; 121END-ISO-10303-21;