step-examples/12-3a-shells/Tsh241.stp
Sources
- occt-coverage GAP audit, `exchange/problems.json` `stp-degenerate-edge-multiface` (`StepToTopoDS_TranslateEdge::Init` cached-degenerated-edge retranslate-per-face path). Extends Tsh035's single-face degenerate/ambiguous-edge pattern to a genuine multi-face reference.
Description
A `CONICAL_SURFACE` (apex at origin, axis +Z, semi-angle 30 deg) is split into TWO half-cone `ADVANCED_FACE`s (front, y>=0, and back, y<=0) sharing: (1) the SAME degenerate apex `EDGE_CURVE` entity (zero-length, apex `VERTEX_POINT` at both ends) referenced from BOTH faces' `EDGE_LOOP`s, and (2) the two lateral (radial) `EDGE_CURVE`s at the seam, each referenced with opposite `ORIENTED_EDGE` sense by the two faces (a genuine manifold split, not two independent half-cones taped together). No prior fixture (Tsh035, Twi031, Gs189, Xp013) presents a degenerate edge entity shared across multiple faces' bounds — each keeps its degenerate edge within a single face's own wire.
Reproducer recipe
One `CONICAL_SURFACE`; one degenerate `EDGE_CURVE('',#apex,#apex,#zero_length_line,.T.)`; two `ADVANCED_FACE`s each with an `EDGE_LOOP` containing an `ORIENTED_EDGE` wrapping that SAME `EDGE_CURVE` entity (not a duplicate copy).
Expected kernel behavior
heal; `StepToTopoDS_TranslateEdge::Init` must retranslate a fresh per-face degenerate edge (with its own pcurve for that face's parametrization) each time the shared entity is encountered on a new face, rather than reusing a stale cached copy from the first face.
Notes
Live-verified (this worktree's OCP/OCCT 7.8.1): the translated shape reports `n_faces_total == 2` (both `surface_type == "cone"`), `n_edges_total == 6` against only 5 distinct `EDGE_CURVE` STEP entities in the bytes — one entity (the shared degenerate apex edge) is retranslated into two separate `TopoDS_Edge`s rather than reused from cache, while the two shared lateral edges ARE reused (5 entities, 8 `ORIENTED_EDGE` references, 6 resulting `TopoDS_Edge`s) — directly confirming the cached-degenerated-edge-retranslated-per-face mechanism in bytes and behavior. **See also**: Tsh035 (single-face torus-seam analog), Twi031 (duplicated-within-one-wire analog). Synonyms: "degenerate edge shared across faces", "cone apex edge reused by two faces", "per-face degenerate edge retranslation", "shared apex bridge multi-face cone", "degenerate edge entity multiple face bounds".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
count_entity_def(b'CONICAL_SURFACE') == 1count_entity_def(b'ADVANCED_FACE') == 2count_entity_def(b'EDGE_LOOP') == 2
Tier-3 assertions
n_faces_total == 2face[0].surface_type == "cone"face[1].surface_type == "cone"
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/* Tsh241: OPEN_SHELL with TWO ADVANCED_FACEs on the SAME CONICAL_SURFACE (semi-angle 30 deg, axis +Z, apex at origin), split front/back (y>=0 / y<=0) at a shared diametral seam; ONE degenerate apex EDGE_CURVE entity (zero-length, apex vertex at both ends) IS referenced from the bounds of BOTH ADVANCED_FACEs' EDGE_LOOPs (not confined to a single face's wire); the two radial seam EDGE_CURVEs are also shared between the faces with opposite ORIENTED_EDGE senses â forces per-face retranslation of the cached degenerate edge (StepToTopoDS_TranslateEdge::Init) */ 3HEADER; 4FILE_DESCRIPTION(('Tsh241'),'2;1'); 5FILE_NAME('Tsh241.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,2.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('tsh241_degen_apex',#7,#7,#15,.T.); 26#17=DIRECTION('',(0.5,0.0,0.866025403784)); 27#18=VECTOR('',#17,2.30940107676); 28#19=CARTESIAN_POINT('',(0.0,0.0,0.0)); 29#20=LINE('',#19,#18); 30#21=EDGE_CURVE('',#7,#9,#20,.T.); 31#22=DIRECTION('',(-0.5,0.0,0.866025403784)); 32#23=VECTOR('',#22,2.30940107676); 33#24=CARTESIAN_POINT('',(0.0,0.0,0.0)); 34#25=LINE('',#24,#23); 35#26=EDGE_CURVE('',#7,#11,#25,.T.); 36#27=CARTESIAN_POINT('',(0.0,0.0,2.0)); 37#28=DIRECTION('',(0.0,0.0,1.0)); 38#29=DIRECTION('',(1.0,0.0,0.0)); 39#30=AXIS2_PLACEMENT_3D('',#27,#28,#29); 40#31=CIRCLE('',#30,1.1547005384); 41#32=EDGE_CURVE('',#9,#11,#31,.T.); 42#33=EDGE_CURVE('',#11,#9,#31,.T.); 43#34=ORIENTED_EDGE('',*,*,#16,.T.); 44#35=ORIENTED_EDGE('',*,*,#21,.T.); 45#36=ORIENTED_EDGE('',*,*,#32,.T.); 46#37=ORIENTED_EDGE('',*,*,#26,.F.); 47#38=EDGE_LOOP('',(#34,#35,#36,#37)); 48#39=FACE_OUTER_BOUND('',#38,.T.); 49#40=ADVANCED_FACE('tsh241_face_front',(#39),#5,.T.); 50#41=ORIENTED_EDGE('',*,*,#16,.T.); 51#42=ORIENTED_EDGE('',*,*,#26,.T.); 52#43=ORIENTED_EDGE('',*,*,#33,.T.); 53#44=ORIENTED_EDGE('',*,*,#21,.F.); 54#45=EDGE_LOOP('',(#41,#42,#43,#44)); 55#46=FACE_OUTER_BOUND('',#45,.T.); 56#47=ADVANCED_FACE('tsh241_face_back',(#46),#5,.T.); 57#48=OPEN_SHELL('',(#40,#47)); 58#49=SHELL_BASED_SURFACE_MODEL('',(#48)); 59#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 60#9051=PRODUCT('Tsh241','Tsh241','',(#9050)); 61#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 62#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 63#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 64#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 65#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 66#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 67#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 68#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 69#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 70#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#49),#9060); 71#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 72ENDSEC; 73END-ISO-10303-21;