Twi029 — STEP writer drops entire wire if it contains a degenerate edge

§12.3b wire-loop

topology

Sources

Description

When an OCCT shape contains a wire with one or more degenerate edges (apex-bridge, seam) the writer historically omitted the entire wire on STEP export.

Reproducer recipe

BRep cone solid with apex degenerate edge; round-trip through OCCT writer; observe missing apex-bridge edge in output.

Expected kernel behavior

Heal and accept: emit degenerate edges; the reader normalizes / accepts them.

Notes

**See also**: Twi021. Synonyms: "writer drops wire with degenerate edge", "exporter omits cone apex bridge edge", "round-trip loses pole edges", "STEP write loses wires containing zero-length edges", "cone apex disappears on export".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(8) 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

Cross-references

Twi021

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi029: OPEN_SHELL with one ADVANCED_FACE on a CONICAL_SURFACE (semi-angle 30°, axis +Z, apex at origin); FACE_OUTER_BOUND references an EDGE_LOOP containing: one degenerate ORIENTED_EDGE at the apex (zero-length EDGE_CURVE, same vertex at both ends), two lateral line edges from apex to base, and one base semi-circle arc; degenerate apex-bridge EDGE_CURVE inside EDGE_LOOP IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; STEP writer must emit the complete wire, not drop it when a degenerate member is present */
3HEADER;
4FILE_DESCRIPTION(('Twi029'),'2;1');
5FILE_NAME('Twi029.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('',#7,#7,#15,.T.);
26#17=ORIENTED_EDGE('',*,*,#16,.T.);
27#18=DIRECTION('',(0.5,0.0,0.866025403784));
28#19=VECTOR('',#18,2.30940107676);
29#20=CARTESIAN_POINT('',(0.0,0.0,0.0));
30#21=LINE('',#20,#19);
31#22=EDGE_CURVE('',#7,#9,#21,.T.);
32#23=ORIENTED_EDGE('',$,$,#22,.T.);
33#24=CARTESIAN_POINT('',(0.0,0.0,2.0));
34#25=DIRECTION('',(0.0,0.0,1.0));
35#26=DIRECTION('',(1.0,0.0,0.0));
36#27=AXIS2_PLACEMENT_3D('',#24,#25,#26);
37#28=CIRCLE('',#27,1.1547005384);
38#29=EDGE_CURVE('',#9,#11,#28,.T.);
39#30=ORIENTED_EDGE('',*,*,#29,.T.);
40#31=DIRECTION('',(-0.5,0.0,0.866025403784));
41#32=VECTOR('',#31,2.30940107676);
42#33=CARTESIAN_POINT('',(-1.15470053838,0.0,2.0));
43#34=LINE('',#33,#32);
44#35=EDGE_CURVE('',#11,#7,#34,.T.);
45#36=ORIENTED_EDGE('',$,$,#35,.T.);
46#37=EDGE_LOOP('',(#17,#23,#30,#36));
47#38=FACE_OUTER_BOUND('',#37,.T.);
48#39=ADVANCED_FACE('',(#38),#5,.T.);
49#40=OPEN_SHELL('',(#39));
50#41=SHELL_BASED_SURFACE_MODEL('',(#40));
51#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
52#9051=PRODUCT('Twi029','Twi029','',(#9050));
53#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
54#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
55#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
56#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
57#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#41),#9060);
63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
64ENDSEC;
65END-ISO-10303-21;