step-examples/12-3c-faces/Tfa260.stp
Sources
- occt-coverage PARTIAL audit, `tkshhealing/problems.json` `tkshh-wire-missing-or-bad-degenerated-edge` subvariant 7, apex-ABOVE arm. `ShapeFix_Face::FixPeriodicDegenerated` — `ShapeFix_Face.cxx:2647-2788` @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`
- apex-ABOVE arm specifically at `:2746-2751` (`gp_Pnt2d(aMaxLoopU, anApexV)`, `gp_Dir2d(-1,0)`, wire reversed when U decreases), versus the apex-BELOW arm at `:2739-2744`. Per the class notes, the apex-above case had never had a fixture at all — Tfa071/Tfa103/Tfa150 were all apex-below, and in any event were found in the 2026-07-17 re-audit never to invoke this repair.
Description
The mirror of Tfa259. Same `CONICAL_SURFACE` (radius 3 at V=0, semi-angle 30 degrees, apex at V=-6), but the sole boundary is the full-revolution belt `CIRCLE` at V=-10 (`belt_above_apex`) — BELOW the apex in the surface's own parameter, i.e. on the mirrored nappe of the double cone, where the parametric radius `3 + (-10)*sin(30) = -2` is negative and the U direction is consequently mirrored. The belt is emitted as a 3D `CIRCLE` of radius 2 at z=-8.6602540 whose `AXIS2_PLACEMENT_3D` ref_direction is (-1,0,0), so its 3D parametrization agrees with the surface's mirrored U at every point and not merely at the seam. Reaching this case is forced by the schema: `CONICAL_SURFACE` requires radius >= 0 and 0 < semi_angle < pi/2, so the apex V coordinate -radius/sin(semi_angle) is always <= 0 and a belt on the ordinary nappe always puts the apex BELOW; the mirrored nappe is the only conforming way to put it ABOVE. As in Tfa259, the apex row is left unbounded — no apex edge and no seam in the file.
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 less than -radius/sin(semi_angle) (i.e. beyond the apex, on the mirrored nappe), with the circle's ref_direction negated so its parametrization matches the surface's mirrored U; no other edge in the file.
Expected kernel behavior
heal; as in Tfa259 recognise the belting loop and locate the apex in V, but — with the apex ABOVE the belt — synthesize the apex-bridging degenerate edge as a 2D line at the loop's MAXIMUM U running in the -U direction, applying the reversal guard for the opposite U-direction sense; the seam then follows and the face becomes a properly bounded cone on the mirrored nappe.
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=-10.0), a seam used twice (spanning v=[-10, -6]), and one edge with `BRep_Tool::Degenerated == True` whose pcurve is a `Geom2d_Line` with **loc=(6.283185, -6.0), dir=(-1, 0)**, range [0, 6.283185]. Set against Tfa259's **loc=(0.0, -6.0), dir=(+1, 0)** on the identical surface, that is a clean two-way split: same apex V (both -radius/sin(semi_angle) = -6), opposite U anchor (maxLoopU vs minLoopU) and opposite traversal direction — exactly `ShapeFix_Face.cxx:2748-2749` versus `:2740-2741`. The belt edge's own orientation in the healed wire also flips between the two fixtures (FORWARD here, REVERSED in Tfa259), reflecting the different `aSoleWire.Reverse()` guard in each arm. **See also**: Tfa259 (the apex-BELOW mirror — the pair is only meaningful together), Tfa258 (the sphere arm), Twi021 (the wire-level cone-apex insert). Synonyms: "apex above wire V range", "cone belt on mirrored nappe", "second nappe conical face", "negative parametric radius cone", "apex degenerate edge decreasing U". 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_above_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/* Tfa260: 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=-10 ('belt_above_apex', on the MIRRORED nappe: parametric radius 3 + (-10)*sin(30) = -2, emitted as a 3D CIRCLE of radius 2 at z=-8.6602540 whose ref_direction is (-1,0,0) so its parametrization matches the surface's own mirrored U). The apex row is left unbounded: no apex-bridging degenerate edge and no seam are present in the file, and the apex lies ABOVE the belt in V (-6 > -10) -- the branch that must build the apex 2D line at the loop's maximum U running in -U, the mirror of Tfa259. The EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE and OPEN_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Tfa260'),'2;1'); 5FILE_NAME('Tfa260.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('',(-2.0,0.0,-8.66025403784)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(0.0,0.0,-8.66025403784)); 18#9=DIRECTION('',(-1.0,0.0,0.0)); 19#10=AXIS2_PLACEMENT_3D('',#8,#2,#9); 20#11=CIRCLE('',#10,2.0000000000); 21#12=EDGE_CURVE('belt_above_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('Tfa260','Tfa260','',(#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;