step-examples/12-2c-surfaces/Gs205.stp
Sources
- occt-coverage PARTIAL audit, `exchange/problems.json` `sew-degenerate-edge-passthrough` (the class names two legitimate zero-length archetypes, "the edge running along a cone's apex, or a seam-collapse point on a sphere"
- Gs189 supplies the sphere-pole one as a radius-0.0 `CIRCLE`, this one supplies the cone apex as ISO 10303-42's `VERTEX_LOOP`). Kernel path: `StepToTopoDS_TranslateVertexLoop.cxx:88-95` (`B.Degenerated(E, Standard_True)` on a curve-less edge with the same vertex at both ends), `BRepBuilderAPI_Sewing::FaceAnalysis` degenerate-edge branch (old edge added to the replacing wire, registered in `myDegenerated`, all small-edge processing skipped), `BRepBuilderAPI_Sewing.cxx:2559` (`if (BRep_Tool::Degenerated(...)) continue` — never a boundary candidate), `BRepBuilderAPI_Sewing::IsDegenerated` `:2096-2114`.
Description
`MANIFOLD_SOLID_BREP` over a two-face `CLOSED_SHELL`. The first face is a `CONICAL_SURFACE` (reference radius 5 at z=0, 45° semi-angle, so the apex is exactly (0,0,-5)); its `FACE_OUTER_BOUND` is the z=0 rim circle and its inner `FACE_BOUND` is a `VERTEX_LOOP` at the apex vertex — the Part-42 encoding for a boundary that collapses to a single point. The second face is the planar disk closing the rim. Nothing here is malformed: this is a correct, ordinary cone, and the fixture's job is to assert that a healing pass leaves the degenerate apex edge alone.
Reproducer recipe
`CONICAL_SURFACE` `ADVANCED_FACE` with a `FACE_OUTER_BOUND` on the base-circle `EDGE_CURVE` and a second `FACE_BOUND` whose loop is a `VERTEX_LOOP` referencing a `VERTEX_POINT` placed exactly at the cone's apex; close the shell with a planar disk on the same rim edge; sew at tolerance 1e-2.
Expected kernel behavior
the `VERTEX_LOOP` becomes a wire holding one zero-length edge, with the same vertex at both ends and NO 3D curve, formally flagged degenerate; the sewing pass must recognise the flag and copy the edge through unchanged — no small-edge measurement (there is no curve to measure), no removal, no vertex gluing, no boundary-candidate registration — and report it as a degenerate shape rather than as a repaired or deleted one.
Notes
Why we believe this test is valid — live-verified against this fixture's own bytes (this worktree's `validation/.venv`, OCP/OCCT 7.8.1). Default read → shape_null=False, 2 faces; the apex edge comes back with identical start/end vertex at (0,0,-5), `BRep_Tool::Degenerated` True and `BRep_Tool::Curve` NULL — there is literally nothing to measure a length from, so a pass that reached the small-edge branch could not evaluate it. `BRepBuilderAPI_Sewing(1e-2)`.Perform() → `NbDegeneratedShapes()==1`, `NbFreeEdges()==0`, `NbContigousEdges()==0`, `NbDeletedFaces()==0`, and the apex edge is present in the result unchanged: same two coincident vertices, still flagged degenerate. Nothing was repaired, removed or collapsed — which is the whole claim. Perturbation, same generator: replace the apex bound with a GENUINE circle of radius 0.05 just below the apex (small, but not formally degenerate) → `NbDegeneratedShapes()` 1 → 0 and `NbFreeEdges()` 0 → 1, i.e. the edge is now registered as a free boundary and enters ordinary processing. The degeneracy flag is therefore load-bearing for the observed outcome, not incidental. Also recorded, verified and mildly surprising: OCCT normalises BOTH STEP encodings of a collapsed boundary — this fixture's `VERTEX_LOOP` and Gs189's radius-0.0 `CIRCLE` — to the same in-memory shape, a degenerate edge whose 3D curve handle is null; the two fixtures differ as INPUT patterns (what a consumer must survive) while converging on the same kernel branch. The read also completes the cone face's boundary with a computed seam line from the apex to the rim, so the loaded shape has 3 unique edges (tier-3 `n_edges_total`=5 counts loop occurrences). Synonyms: "cone apex vertex loop degenerate edge STEP", "must not remove degenerate edge sewing", "zero-length edge legitimate not defect", "VERTEX_LOOP face bound apex", "degenerate edge no 3D curve pass through".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(8) ifc=schema_n/a
Byte assertions
count_entity_def(b'VERTEX_LOOP') == 1count_entity_def(b'CONICAL_SURFACE') == 1count_entity_def(b'EDGE_CURVE') == 1count_entity_def(b'CLOSED_SHELL') == 1
Tier-3 assertions
shape_null == Falsen_faces_total == 2face[0].surface_type == "cone"face[0].quadric.ref_radius == 5.0face[1].surface_type == "plane"
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/* Gs205: CLOSED_SHELL whose CONICAL_SURFACE face (ref radius 5 at z=0, 45-degree semi-angle, apex at (0,0,-5)) has its apex expressed as a VERTEX_LOOP inner FACE_BOUND -- the ISO 10303-42 encoding for a boundary that collapses to a single point. The reader turns it into a zero-length edge with no 3D curve at all, formally flagged degenerate: a legitimate, non-defective piece of B-Rep topology that a healing pass must recognise and leave alone rather than treat as a small/collapsed edge to remove */ 3HEADER; 4FILE_DESCRIPTION(('Gs205'),'2;1'); 5FILE_NAME('Gs205.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('',(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('gs205_cone',#4,5.0,0.785398163397); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=DIRECTION('',(0.0,0.0,1.0)); 17#8=DIRECTION('',(1.0,0.0,0.0)); 18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8); 19#10=CIRCLE('gs205_rim',#9,5.0); 20#11=CARTESIAN_POINT('',(5.0,0.0,0.0)); 21#12=VERTEX_POINT('',#11); 22#13=EDGE_CURVE('gs205_rim_edge',#12,#12,#10,.T.); 23#14=ORIENTED_EDGE('',$,$,#13,.T.); 24#15=EDGE_LOOP('',(#14)); 25#16=FACE_OUTER_BOUND('',#15,.T.); 26#17=CARTESIAN_POINT('',(0.0,0.0,-5.0)); 27#18=VERTEX_POINT('',#17); 28#19=VERTEX_LOOP('gs205_apex_vertex_loop',#18); 29#20=FACE_BOUND('gs205_apex_bound',#19,.T.); 30#21=ADVANCED_FACE('',(#16,#20),#5,.T.); 31#22=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#23=DIRECTION('',(0.0,0.0,-1.0)); 33#24=DIRECTION('',(1.0,0.0,0.0)); 34#25=AXIS2_PLACEMENT_3D('',#22,#23,#24); 35#26=PLANE('',#25); 36#27=ORIENTED_EDGE('',$,$,#13,.F.); 37#28=EDGE_LOOP('',(#27)); 38#29=FACE_OUTER_BOUND('',#28,.T.); 39#30=ADVANCED_FACE('',(#29),#26,.T.); 40#31=CLOSED_SHELL('gs205_cone_apex_shell',(#21,#30)); 41#32=MANIFOLD_SOLID_BREP('gs205_solid',#31); 42#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 43#9051=PRODUCT('Gs205','Gs205','',(#9050)); 44#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 45#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 46#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 47#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 48#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 49#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 50#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 51#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 52#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 53#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#32),#9060); 54#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 55ENDSEC; 56END-ISO-10303-21;