Twi305 — Apex-bridging edge already PRESENT at the cone singularity (single, correctly positioned): dgnr/replace input

§12.3b wire-loop (sub-class: `tkshh-wire-missing-or-bad-degenerated-edge`, PARTIAL, subvariant "edge sitting on the singularity that must become/be replaced by a proper degenerated edge (dgnr, DONE2)")

P3 — cosmetic / metadata-only

topology

Sources

Description

`ShapeAnalysis_Wire::CheckDegenerated` distinguishes two singularity-bridge outcomes: "lack" (no edge at all bridges the singular row -> INSERT, DONE1 -- Twi021's exact input) vs. "dgnr" (an edge ALREADY occupies that wire slot, sitting at the singularity -> REPLACE with a freshly-built canonical degenerated edge, DONE2). This fixture supplies exactly the "dgnr" input shape: FOUR declared edges (vs. Twi021's THREE and Twi031's FIVE) — two lateral `LINE` edges, one base `CIRCLE` arc, and exactly ONE apex-bridging `EDGE_CURVE` (`single_apex_degenerate_edge`: apex -> apex, same `VERTEX_POINT` object at both ends, zero-length `LINE`) — present, singular, correctly positioned, not missing, not duplicated.

Reproducer recipe

`CONICAL_SURFACE` (apex at origin, semi-angle 30°, axis +Z); `EDGE_LOOP` of `single_apex_degenerate_edge(apex->apex)`, `lat_L(apex->base_0)`, `base_arc(base_0->base_pi)`, `lat_R(base_pi->apex)`.

Expected kernel behavior

process the existing apex-bridging edge down the dgnr/DONE2 replace branch (rather than the lack/DONE1 insert branch), yielding a valid, single, canonical degenerate apex edge.

Notes

**See also**: Twi021 (the lack/insert sibling), Twi031 (duplicate/dedupe sibling), Tfa245/Twi296/Twi297 (other subvariants of this 10-subvariant merged class). Live-verified (this worktree, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, face is a cone, `n_edges_total=4`, `n_vertices_total=8`, `brepcheck.valid=True`; a direct `BRep_Tool::Degenerated_s()` probe shows exactly ONE of the 4 read-back edges comes back `True` (the apex bridge), matching both Twi021's and Twi031's own converged post-heal shape exactly — expected, since "dgnr" is defined by what INPUT STRUCTURE it presents to `CheckDegenerated` (an edge occupying the singular slot vs. a gap), not by a different final geometry. An earlier near-tolerance variant of this fixture (apex vertices offset ~1e-6/1e-7 from the true apex rather than bit-identical) was live-tested and found to NOT trigger the replace path — it left the imperfect small edge in place UNTOUCHED and additionally inserted a second, fresh degenerate edge (5 edges total, "lack" behavior firing alongside it), which is why this fixture uses the bit-identical-vertex construction instead. Synonyms: "degenerate edge present not missing", "dgnr replace branch input", "apex bridge already occupying wire slot", "single correctly-positioned degenerate edge", "FixDegenerated DONE2 replace". Provenance tier: bytes-sufficient.

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Byte assertions

Tier-3 assertions

Cross-references

Twi021, Twi031, Tfa245, Twi296, Twi297

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi305: OPEN_SHELL with one ADVANCED_FACE on a CONICAL_SURFACE (apex at origin, semi-angle 30deg, axis +Z); FACE_OUTER_BOUND references a 4-edge EDGE_LOOP: single_apex_degenerate_edge (apex -> apex, SAME VERTEX_POINT object at both ends, zero-length LINE -- present, singular, correctly positioned, NOT missing like Twi021 and NOT duplicated like Twi031), lat_L (apex -> base_0), base_arc (base_0 -> base_pi), lat_R (base_pi -> apex); the apex-bridging edge occupying its wire slot (rather than a gap) is what forces ShapeFix_Wire::FixDegenerated's dgnr/DONE2 replace branch rather than the lack/DONE1 insert branch; EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi305'),'2;1');
5FILE_NAME('Twi305.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=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=CONICAL_SURFACE('',#4,0.0,0.5235987756);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(1.15470053838,0.0,2.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(-1.15470053838,0.0,2.0));
20#11=VERTEX_POINT('',#10);
21#12=DIRECTION('',(1.0,0.0,0.0));
22#13=VECTOR('',#12,0.0);
23#14=CARTESIAN_POINT('',(0.0,0.0,0.0));
24#15=LINE('',#14,#13);
25#16=EDGE_CURVE('single_apex_degenerate_edge',#7,#7,#15,.T.);
26#17=ORIENTED_EDGE('',*,*,#16,.T.);
27#18=DIRECTION('',(0.5,0.0,0.866025403784));
28#19=VECTOR('',#18,2.30940107676);
29#20=CARTESIAN_POINT('',(0.0,0.0,0.0));
30#21=LINE('',#20,#19);
31#22=EDGE_CURVE('',#7,#9,#21,.T.);
32#23=ORIENTED_EDGE('',$,$,#22,.T.);
33#24=CARTESIAN_POINT('',(0.0,0.0,2.0));
34#25=AXIS2_PLACEMENT_3D('',#24,#2,#3);
35#26=CIRCLE('',#25,1.1547005384);
36#27=EDGE_CURVE('',#9,#11,#26,.T.);
37#28=ORIENTED_EDGE('',*,*,#27,.T.);
38#29=DIRECTION('',(-0.5,0.0,0.866025403784));
39#30=VECTOR('',#29,2.30940107676);
40#31=CARTESIAN_POINT('',(-1.15470053838,0.0,2.0));
41#32=LINE('',#31,#30);
42#33=EDGE_CURVE('',#11,#7,#32,.T.);
43#34=ORIENTED_EDGE('',$,$,#33,.T.);
44#35=EDGE_LOOP('',(#23,#28,#34,#17));
45#36=FACE_OUTER_BOUND('',#35,.T.);
46#37=ADVANCED_FACE('',(#36),#5,.T.);
47#38=OPEN_SHELL('',(#37));
48#39=SHELL_BASED_SURFACE_MODEL('',(#38));
49#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
50#9051=PRODUCT('Twi305','Twi305','',(#9050));
51#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
52#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
53#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
54#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
55#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
56#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
57#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
58#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
59#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
60#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#39),#9060);
61#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
62ENDSEC;
63END-ISO-10303-21;