step-examples/12-3b-wires/Twi098.stp
Sources
- OCCT MANTIS#0026282
- OCCT GitHub#565 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A wire-cleanup pass intended to remove "tail" edges (short detours) is applied to a wire whose tails are deliberately significant; feature edges encoding small chamfers or fillets. The algorithm classifies them as removable noise and drops them, simplifying geometry beyond intent.
Reproducer recipe
Wire of 6 edges, two of which are short (1 mm each, vs others at 100 mm). Tails-fix removes both short edges.
Expected kernel behavior
Heal and accept: normalize the tail-removal threshold to a configurable parameter; the default does not remove edges above the ~tolerance scale; documented threshold semantics.
Notes
**See also**: Twi054, Twi077. Synonyms: "FixTails drops chamfer edges", "tail-removal eats feature geometry", "wire cleanup destroys small chamfers", "short feature edges classified as noise", "intentional small edges removed by healer".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'e3_short_1mm_chamfer')contains(b'e6_short_1mm_fillet_marker')contains(b'hex_with_two_short_features')
Tier-3 assertions
shape_null == True
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/* Twi098: GEOMETRIC_CURVE_SET containing EDGE_LOOP 'hex_with_two_short_features'; 6 LINE edges: e1(100mm),e2(100mm),e3='e3_short_1mm_chamfer'(1mm),e4(100mm),e5(100mm),e6='e6_short_1mm_fillet_marker'(1mm); FixTails classifies 1mm edges as removable tails despite encoding chamfer/fillet; correct kernel preserves short feature edges above tolerance threshold; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi098'),'2;1'); 5FILE_NAME('Twi098.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=VERTEX_POINT('',#1); 12#3=CARTESIAN_POINT('',(100.0,0.0,0.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(200.0,0.0,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=CARTESIAN_POINT('',(201.0,0.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=CARTESIAN_POINT('',(301.0,0.0,0.0)); 19#10=VERTEX_POINT('',#9); 20#11=CARTESIAN_POINT('',(401.0,0.0,0.0)); 21#12=VERTEX_POINT('',#11); 22#13=CARTESIAN_POINT('',(402.0,0.0,0.0)); 23#14=VERTEX_POINT('',#13); 24#15=CARTESIAN_POINT('',(0.0,0.0,0.0)); 25#16=DIRECTION('',(1.0,0.0,0.0)); 26#17=VECTOR('',#16,100.0); 27#18=LINE('',#15,#17); 28#19=EDGE_CURVE('',#2,#4,#18,.T.); 29#20=ORIENTED_EDGE('',$,$,#19,.T.); 30#21=CARTESIAN_POINT('',(100.0,0.0,0.0)); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=VECTOR('',#22,100.0); 33#24=LINE('',#21,#23); 34#25=EDGE_CURVE('',#4,#6,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#25,.T.); 36#27=CARTESIAN_POINT('',(200.0,0.0,0.0)); 37#28=DIRECTION('',(1.0,0.0,0.0)); 38#29=VECTOR('',#28,1.0); 39#30=LINE('',#27,#29); 40#31=EDGE_CURVE('e3_short_1mm_chamfer',#6,#8,#30,.T.); 41#32=ORIENTED_EDGE('',$,$,#31,.T.); 42#33=CARTESIAN_POINT('',(201.0,0.0,0.0)); 43#34=DIRECTION('',(1.0,0.0,0.0)); 44#35=VECTOR('',#34,100.0); 45#36=LINE('',#33,#35); 46#37=EDGE_CURVE('',#8,#10,#36,.T.); 47#38=ORIENTED_EDGE('',$,$,#37,.T.); 48#39=CARTESIAN_POINT('',(301.0,0.0,0.0)); 49#40=DIRECTION('',(1.0,0.0,0.0)); 50#41=VECTOR('',#40,100.0); 51#42=LINE('',#39,#41); 52#43=EDGE_CURVE('',#10,#12,#42,.T.); 53#44=ORIENTED_EDGE('',$,$,#43,.T.); 54#45=CARTESIAN_POINT('',(401.0,0.0,0.0)); 55#46=DIRECTION('',(1.0,0.0,0.0)); 56#47=VECTOR('',#46,1.0); 57#48=LINE('',#45,#47); 58#49=EDGE_CURVE('e6_short_1mm_fillet_marker',#12,#14,#48,.T.); 59#50=ORIENTED_EDGE('',$,$,#49,.T.); 60#51=EDGE_LOOP('hex_with_two_short_features',(#20,#26,#32,#38,#44,#50)); 61#52=GEOMETRIC_CURVE_SET('',(#51)); 62#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 63#9051=PRODUCT('Twi098','Twi098','',(#9050)); 64#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 65#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 66#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 67#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 68#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 69#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 70#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 71#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 72#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 73#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#52),#9060); 74#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 75ENDSEC; 76END-ISO-10303-21;