step-examples/12-3b-wires/Twi092.stp
Sources
- OCCT MANTIS#0025843 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A face has a wire containing a degenerate edge (a seam pole on a cone or a degenerate edge at the apex of a sphere wedge). The STEP exporter, given a degenerated edge, drops it from the wire entirely rather than emitting it as `EDGE_CURVE` with a degenerated marker. The re-imported wire is incomplete and the face fails validity.
Reproducer recipe
Cone face whose apex is reached by a degenerate edge (zero-length segment between two coincident vertex points at the apex). Exporter writes the wire with three edges instead of four.
Expected kernel behavior
Heal and accept: preserve degenerate edges on export, normalized / marked via `EDGE_CURVE` of zero parametric length or via the dedicated degenerated-edge representation.
Notes
**See also**: Twi053. Synonyms: "cone apex degenerate edge missing on export", "STEP writer drops zero-length edge", "exported wire missing apex bridge", "round-trip removes degenerate edges", "writer omits sphere wedge pole edge".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(17) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
face[1].surface_type == "cone"n_edges_total >= 4n_vertices_total >= 8
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi092: CLOSED_SHELL with two ADVANCED_FACEs: face0 on CONICAL_SURFACE (half-angle 5°, height 10.0, apex at origin); outer EDGE_LOOP contains only THREE edges â lat_L(v_apex_sâv_base_0), base_arc(v_base_0âv_base_pi), lat_R(v_base_piâv_apex_e); v_apex_s and v_apex_e are two distinct VERTEX_POINTs both at (0,0,0); the degenerate apex-bridge edge connecting v_apex_sâv_apex_e was DROPPED silently by the exporter â re-imported wire is incomplete; cone is very pointed (5° half-angle, height 10) â extreme sliver aspect; face1 is a base disk circle face that closes the shell and pushes vertex count; all edges ARE wired into EDGE_LOOPs â FACE_OUTER_BOUNDs â ADVANCED_FACEs in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi092'),'2;1'); 5FILE_NAME('Twi092.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.0872664625997); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(0.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(0.874886635259,0.0,10.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(-0.874886635259,0.0,10.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=DIRECTION('',(0.0871557427477,0.0,0.996194698092)); 25#16=VECTOR('',#15,10.0381983754); 26#17=LINE('',#14,#16); 27#18=EDGE_CURVE('',#7,#11,#17,.T.); 28#19=ORIENTED_EDGE('',$,$,#18,.T.); 29#20=CARTESIAN_POINT('',(0.0,0.0,10.0)); 30#21=DIRECTION('',(0.0,0.0,1.0)); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=AXIS2_PLACEMENT_3D('',#20,#21,#22); 33#24=CIRCLE('',#23,0.874886635259); 34#25=EDGE_CURVE('',#11,#13,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#25,.T.); 36#27=CARTESIAN_POINT('',(-0.874886635259,0.0,10.0)); 37#28=DIRECTION('',(0.0871557427477,0.0,-0.996194698092)); 38#29=VECTOR('',#28,10.0381983754); 39#30=LINE('',#27,#29); 40#31=EDGE_CURVE('',#13,#9,#30,.T.); 41#32=ORIENTED_EDGE('',$,$,#31,.T.); 42#33=EDGE_LOOP('',(#19,#26,#32)); 43#34=FACE_OUTER_BOUND('',#33,.T.); 44#35=ADVANCED_FACE('',(#34),#5,.T.); 45#36=CARTESIAN_POINT('',(0.0,0.0,10.0)); 46#37=DIRECTION('',(0.0,0.0,-1.0)); 47#38=DIRECTION('',(1.0,0.0,0.0)); 48#39=AXIS2_PLACEMENT_3D('',#36,#37,#38); 49#40=PLANE('',#39); 50#41=CARTESIAN_POINT('',(0.874886635259,0.0,10.0)); 51#42=VERTEX_POINT('',#41); 52#43=CARTESIAN_POINT('',(-0.874886635259,0.0,10.0)); 53#44=VERTEX_POINT('',#43); 54#45=CARTESIAN_POINT('',(0.0,0.874886635259,10.0)); 55#46=VERTEX_POINT('',#45); 56#47=CARTESIAN_POINT('',(0.0,-0.874886635259,10.0)); 57#48=VERTEX_POINT('',#47); 58#49=CARTESIAN_POINT('',(0.0,0.0,10.0)); 59#50=DIRECTION('',(0.0,0.0,-1.0)); 60#51=DIRECTION('',(1.0,0.0,0.0)); 61#52=AXIS2_PLACEMENT_3D('',#49,#50,#51); 62#53=CIRCLE('',#52,0.874886635259); 63#54=EDGE_CURVE('',#42,#46,#53,.T.); 64#55=ORIENTED_EDGE('',$,$,#54,.T.); 65#56=EDGE_CURVE('',#46,#44,#53,.T.); 66#57=ORIENTED_EDGE('',$,$,#56,.T.); 67#58=EDGE_CURVE('',#44,#48,#53,.T.); 68#59=ORIENTED_EDGE('',$,$,#58,.T.); 69#60=EDGE_CURVE('',#48,#42,#53,.T.); 70#61=ORIENTED_EDGE('',$,$,#60,.T.); 71#62=EDGE_LOOP('',(#55,#57,#59,#61)); 72#63=FACE_OUTER_BOUND('',#62,.T.); 73#64=ADVANCED_FACE('',(#63),#40,.T.); 74#65=CLOSED_SHELL('',(#35,#64)); 75#66=SHELL_BASED_SURFACE_MODEL('',(#65)); 76#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 77#9051=PRODUCT('Twi092','Twi092','',(#9050)); 78#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 79#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 80#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 81#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 82#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 83#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 84#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 85#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 86#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 87#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#66),#9060); 88#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 89ENDSEC; 90END-ISO-10303-21;