step-examples/12-3b-wires/Twi033.stp
Sources
- 05-occt-shapefix.md F030 (FixWiresTwoCoincEdges)
Description
A single wire contains two distinct edges whose 3D and 2D traces coincide within tolerance; both edges describe the same arc, but the wire references them as separate entries. Likely from a failed Boolean or duplicate-injection during translation.
Reproducer recipe
Wire `[e1, e2, e3, e2', e4]` where `e2'` is geometrically equal to `e2`.
Expected kernel behavior
detect the coincident edges and drop the duplicate, or reject as malformed.
Notes
**See also**: Tfa025. Synonyms: "wire has duplicate overlapping edges", "two edges describe same arc", "doubled edge in wire", "same arc referenced twice in EDGE_LOOP", "Boolean fallout left duplicate edges".
Expected validation
occt=shape(1)/shape(1) gmsh=reject 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
n_edges_total >= 4face[0].surface_type == "plane"n_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/* Twi033: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, 2x2 square); FACE_OUTER_BOUND references an EDGE_LOOP containing five ORIENTED_EDGEs: bottom edge (v00âv10), right edge (v10âv11), top edge (v11âv01), left edge A (v01âv00) â the main edge, left edge B (v01âv00) â a duplicate with separate EDGE_CURVE entity but geometrically identical to left edge A; two coincident EDGE_CURVEs for the left side IS the mechanism (Boolean fallout / duplicate-injection); EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; kernel must detect and drop the duplicate, or reject as malformed */ 3HEADER; 4FILE_DESCRIPTION(('Twi033'),'2;1'); 5FILE_NAME('Twi033.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=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(2.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(2.0,2.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,2.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=DIRECTION('',(1.0,0.0,0.0)); 24#15=VECTOR('',#14,2.0); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=LINE('',#16,#15); 27#18=EDGE_CURVE('',#7,#9,#17,.T.); 28#19=ORIENTED_EDGE('',$,$,#18,.T.); 29#20=DIRECTION('',(0.0,1.0,0.0)); 30#21=VECTOR('',#20,2.0); 31#22=CARTESIAN_POINT('',(2.0,0.0,0.0)); 32#23=LINE('',#22,#21); 33#24=EDGE_CURVE('',#9,#11,#23,.T.); 34#25=ORIENTED_EDGE('',$,$,#24,.T.); 35#26=DIRECTION('',(-1.0,0.0,0.0)); 36#27=VECTOR('',#26,2.0); 37#28=CARTESIAN_POINT('',(2.0,2.0,0.0)); 38#29=LINE('',#28,#27); 39#30=EDGE_CURVE('',#11,#13,#29,.T.); 40#31=ORIENTED_EDGE('',$,$,#30,.T.); 41#32=DIRECTION('',(0.0,-1.0,0.0)); 42#33=VECTOR('',#32,2.0); 43#34=CARTESIAN_POINT('',(0.0,2.0,0.0)); 44#35=LINE('',#34,#33); 45#36=EDGE_CURVE('',#13,#7,#35,.T.); 46#37=ORIENTED_EDGE('',$,$,#36,.T.); 47#38=DIRECTION('',(0.0,-1.0,0.0)); 48#39=VECTOR('',#38,2.0); 49#40=CARTESIAN_POINT('',(0.0,2.0,0.0)); 50#41=LINE('',#40,#39); 51#42=EDGE_CURVE('',#13,#7,#41,.T.); 52#43=ORIENTED_EDGE('',$,$,#42,.T.); 53#44=EDGE_LOOP('',(#19,#25,#31,#37,#43)); 54#45=FACE_OUTER_BOUND('',#44,.T.); 55#46=ADVANCED_FACE('',(#45),#5,.T.); 56#47=OPEN_SHELL('',(#46)); 57#48=SHELL_BASED_SURFACE_MODEL('',(#47)); 58#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 59#9051=PRODUCT('Twi033','Twi033','',(#9050)); 60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 62#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 69#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#48),#9060); 70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 71ENDSEC; 72END-ISO-10303-21;