step-examples/12-3c-faces/Tfa259.stp
Sources
- occt-coverage PARTIAL audit, `tkshhealing/problems.json` `tkshh-wire-missing-or-bad-degenerated-edge` subvariant 7. `ShapeFix_Face::FixPeriodicDegenerated` — `ShapeFix_Face.cxx:2647-2788` @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`
- single-wire + conical-surface gate at `:2678-2683`, full-period loop gate `IsPeriodicConicalLoop` at `:2565-2639` (2*pi accumulated |dU| test at `:2634-2637`), apex V computed at `:2716-2717` as `-radius/sin(semi_angle)`, apex-inside bail-out at `:2733-2735`, apex-BELOW arm at `:2739-2744`, apex-ABOVE arm at `:2746-2751`, edge assembled at `:2755-2762`. Called from `ShapeFix_Face::Perform` at `:492-493`, ahead of `FixMissingSeam` at `:495`. Both arms lost their fixtures in the 2026-07-17 re-audit, which found Tfa071/Tfa103/Tfa150 never invoke this repair at all.
Description
A `CONICAL_SURFACE` with radius 3 at V=0 and semi-angle 30 degrees carries one `ADVANCED_FACE` whose `FACE_OUTER_BOUND` is a single-edge `EDGE_LOOP`: the full-revolution belt `CIRCLE` at V=+2 (`belt_below_apex`, 3D radius 4 at z=1.7320508), authored as a closed `EDGE_CURVE` with the same `VERTEX_POINT` at both ends. The apex row is left completely unbounded — no apex-bridging degenerate edge and no seam appear anywhere in the file. Because the surface's apex sits at V = -radius/sin(semi_angle) = -6 and the belt sits at V = +2, the apex is BELOW the belt.
Reproducer recipe
`ADVANCED_FACE` on a `CONICAL_SURFACE`; `FACE_OUTER_BOUND` referencing an `EDGE_LOOP` with exactly ONE `ORIENTED_EDGE` whose `EDGE_CURVE` is a full-revolution `CIRCLE` with identical start and end `VERTEX_POINT`, positioned at a V strictly greater than -radius/sin(semi_angle); no other edge in the file.
Expected kernel behavior
heal; recognise the sole boundary as a loop belting the cone through a full revolution, compute where the apex falls in the surface's own V parameter, and — with the apex below the belt — synthesize the apex-bridging degenerate edge as a 2D line at the loop's MINIMUM U running in the +U direction, reversing the belt wire when needed so the two wires are contraversal; the seam then follows and the face becomes a properly bounded cone.
Notes
Live-verified (2026-07-31, this worktree, OCP/OCCT 7.8.1) against this fixture's own bytes: ONE declared `EDGE_CURVE` reads back as a face with THREE distinct edges / FOUR oriented edges — the belt (`Geom2d_Line` at v=2.0), a seam used twice (`IsSeam == True`, at u=0 and u=6.283185, spanning v=[-6, 2]), and one edge with `BRep_Tool::Degenerated == True` whose pcurve is a `Geom2d_Line` with **loc=(0.0, -6.0), dir=(+1, 0)**, range [0, 6.283185]. Both the coordinate and the direction are the apex-below construction at `ShapeFix_Face.cxx:2740-2741` (`gp_Pnt2d(aMinLoopU, anApexV)`, `gp_Dir2d(1,0)`) with the range from `:2762` (`fabs(aMaxLoopU - aMinLoopU)`). **Fingerprint check**: V = -6.0 is exactly `-radius/sin(semi_angle)`, a quantity computed at `ShapeFix_Face.cxx:2716-2717` and nowhere else in the healing stack; a sweep over four (radius, semi-angle, belt-V) triples confirms the synthesized edge tracks it — (3, 30 deg) gave -6.000000, (7, 45 deg) gave -9.899495, (2, 15 deg) gave -7.727407, (5, 60 deg) gave -5.773503, each matching the prediction to all printed digits. **Negative control**: the same single-belt-circle construction on a `CYLINDRICAL_SURFACE` reads back with ONE edge, zero degenerate edges and no seam (the surface-type gate at `:2681-2683` rejects it), and the same construction on a `SPHERICAL_SURFACE` (Tfa258) produces a structurally different edge at v=+pi/2 from an entirely different repair — so cone, sphere and cylinder each give a distinct, predicted outcome. **See also**: Tfa260 (the apex-ABOVE mirror), Tfa258 (the sphere arm), Twi021 (the wire-level cone-apex insert, a different mechanism at a different level). Synonyms: "cone bounded only by belt circle", "missing apex degenerate edge cone", "single periodic loop on conical face", "apex below wire V range", "unbounded cone apex row". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(6) ifc=schema_n/a
Byte assertions
count_entity_def(b'CONICAL_SURFACE') == 1count_entity_def(b'EDGE_CURVE') == 1contains(b'belt_below_apex')
Tier-3 assertions
face[0].surface_type == "cone"n_edges_total == 4brepcheck.valid == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tfa259: OPEN_SHELL with one ADVANCED_FACE on a CONICAL_SURFACE (radius 3 at V=0, semi-angle 30 deg, axis +Z, so the apex sits at V = -6 = -radius/sin(semi_angle)); FACE_OUTER_BOUND references a SINGLE-edge EDGE_LOOP whose only member is the full-revolution belt CIRCLE at V=+2 ('belt_below_apex', radius 4 at z=1.7320508, the same VERTEX_POINT at both ends). The apex row is left unbounded: no apex-bridging degenerate edge and no seam are present in the file, and the apex lies BELOW the belt in V (-6 < +2) -- the branch that must build the apex 2D line at the loop's minimum U running in +U. The EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE and OPEN_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Tfa259'),'2;1'); 5FILE_NAME('Tfa259.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,3.0000000000,0.5235987756); 15#6=CARTESIAN_POINT('',(4.0,0.0,1.73205080757)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(0.0,0.0,1.73205080757)); 18#9=DIRECTION('',(1.0,0.0,0.0)); 19#10=AXIS2_PLACEMENT_3D('',#8,#2,#9); 20#11=CIRCLE('',#10,4.0000000000); 21#12=EDGE_CURVE('belt_below_apex',#7,#7,#11,.T.); 22#13=ORIENTED_EDGE('',$,$,#12,.T.); 23#14=EDGE_LOOP('',(#13)); 24#15=FACE_OUTER_BOUND('',#14,.T.); 25#16=ADVANCED_FACE('',(#15),#5,.T.); 26#17=OPEN_SHELL('',(#16)); 27#18=SHELL_BASED_SURFACE_MODEL('',(#17)); 28#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 29#9051=PRODUCT('Tfa259','Tfa259','',(#9050)); 30#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 31#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 32#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 33#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 34#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 35#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 36#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 37#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 38#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 39#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#18),#9060); 40#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 41ENDSEC; 42END-ISO-10303-21;