step-examples/12-3b-wires/Twi011.stp
Sources
- 05-occt-shapefix.md F018 (FixTails)
- 03-occt-tests.md R007 (wire_tails_*)
- 08-occt-gitlog.md G090 (Mantis 0024983/0026261)
Description
A wire emits a thin spike — a collinear go-and-return — that is sharper than a configured max-angle and narrower than a max-width threshold. Produces zero-area extrusion artefacts. Some faces have two such notches per wire.
Reproducer recipe
Polyline wire with three near-collinear vertices A-B-C where B is between A and C and the wire goes A→B→A→C. STEP-imported face whose wire has two near-collinear backtrack pairs.
Expected kernel behavior
detect and remove the spike (drop the redundant out-and-back edges, merge endpoints), iterating until no spike remains; or reject the wire as malformed.
Notes
**See also**: Tsh042, Twi013. Synonyms: "wire has thin spike or hair", "wire goes out and back along itself", "needle-like backtrack on perimeter", "zero-area extrusion artifact", "wire has hairpin notch".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(11) 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 >= 5face[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/* Twi011: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with 6 ORIENTED_EDGEs; the wire traces a 1Ã1 square but inserts a go-and-return spike A(0.5,0)âB(0.5,-0.001)âA at the bottom mid-edge; spike is 0.001 wide â well below any max-width threshold; sub-path AâBâA IS the hair/tail defect; kernel must detect and remove spike or reject as malformed */ 3HEADER; 4FILE_DESCRIPTION(('Twi011'),'2;1'); 5FILE_NAME('Twi011.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('',(0.5,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(0.5,-0.001,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.5,0.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(1.0,0.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(1.0,0.0,0.0)); 26#17=VERTEX_POINT('',#16); 27#18=CARTESIAN_POINT('',(1.0,1.0,0.0)); 28#19=VERTEX_POINT('',#18); 29#20=CARTESIAN_POINT('',(1.0,1.0,0.0)); 30#21=VERTEX_POINT('',#20); 31#22=CARTESIAN_POINT('',(0.0,1.0,0.0)); 32#23=VERTEX_POINT('',#22); 33#24=CARTESIAN_POINT('',(0.0,1.0,0.0)); 34#25=VERTEX_POINT('',#24); 35#26=CARTESIAN_POINT('',(0.0,0.0,0.0)); 36#27=VERTEX_POINT('',#26); 37#28=DIRECTION('',(1.0,0.0,0.0)); 38#29=VECTOR('',#28,1.0); 39#30=CARTESIAN_POINT('',(0.0,0.0,0.0)); 40#31=LINE('',#30,#29); 41#32=EDGE_CURVE('',#7,#9,#31,.T.); 42#33=DIRECTION('',(0.0,-1.0,0.0)); 43#34=VECTOR('',#33,1.0); 44#35=CARTESIAN_POINT('',(0.5,0.0,0.0)); 45#36=LINE('',#35,#34); 46#37=EDGE_CURVE('',#9,#11,#36,.T.); 47#38=DIRECTION('',(0.0,1.0,0.0)); 48#39=VECTOR('',#38,1.0); 49#40=CARTESIAN_POINT('',(0.5,-0.001,0.0)); 50#41=LINE('',#40,#39); 51#42=EDGE_CURVE('',#11,#13,#41,.T.); 52#43=DIRECTION('',(1.0,0.0,0.0)); 53#44=VECTOR('',#43,1.0); 54#45=CARTESIAN_POINT('',(0.5,0.0,0.0)); 55#46=LINE('',#45,#44); 56#47=EDGE_CURVE('',#13,#15,#46,.T.); 57#48=DIRECTION('',(0.0,1.0,0.0)); 58#49=VECTOR('',#48,1.0); 59#50=CARTESIAN_POINT('',(1.0,0.0,0.0)); 60#51=LINE('',#50,#49); 61#52=EDGE_CURVE('',#17,#19,#51,.T.); 62#53=DIRECTION('',(-1.0,0.0,0.0)); 63#54=VECTOR('',#53,1.0); 64#55=CARTESIAN_POINT('',(1.0,1.0,0.0)); 65#56=LINE('',#55,#54); 66#57=EDGE_CURVE('',#21,#23,#56,.T.); 67#58=DIRECTION('',(0.0,-1.0,0.0)); 68#59=VECTOR('',#58,1.0); 69#60=CARTESIAN_POINT('',(0.0,1.0,0.0)); 70#61=LINE('',#60,#59); 71#62=EDGE_CURVE('',#25,#27,#61,.T.); 72#63=ORIENTED_EDGE('',$,$,#32,.T.); 73#64=ORIENTED_EDGE('',$,$,#37,.T.); 74#65=ORIENTED_EDGE('',$,$,#42,.T.); 75#66=ORIENTED_EDGE('',$,$,#47,.T.); 76#67=ORIENTED_EDGE('',$,$,#52,.T.); 77#68=ORIENTED_EDGE('',$,$,#57,.T.); 78#69=ORIENTED_EDGE('',$,$,#62,.T.); 79#70=EDGE_LOOP('',(#63,#64,#65,#66,#67,#68,#69)); 80#71=FACE_OUTER_BOUND('',#70,.T.); 81#72=ADVANCED_FACE('',(#71),#5,.T.); 82#73=OPEN_SHELL('',(#72)); 83#74=SHELL_BASED_SURFACE_MODEL('',(#73)); 84#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 85#9051=PRODUCT('Twi011','Twi011','',(#9050)); 86#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 87#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 88#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 89#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 90#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 91#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 92#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 93#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 94#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 95#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060); 96#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 97ENDSEC; 98END-ISO-10303-21;