step-examples/12-3b-wires/Twi122.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixTails wire-tail asymmetry
Reproducer recipe
Expected kernel behavior
All three edges lie on the X axis: the wire runs out from (0,0,0) through a 1.0E-4 edge and a 1.0-unit edge to (1.0001,0,0), then returns along the identical line, so it encloses zero area. Recognise the whole contour as an out-and-back protrusion — each outgoing edge is covered within tolerance by the return edge along its full length — rather than only trimming the short leading edge; cutting the out and back portions against each other consumes every edge, so the correct result is to drop the wire and any face it bounds, with a diagnostic. The 1.0E-4 leading edge is a thousand times the declared 1.0E-7 accuracy and is not by itself grounds for removal.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi122: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 3 edges; e1: very short LINE (0,0,0)â(0.0001,0,0) length=0.0001mm IS leading tail; e2: normal LINE (0.0001,0,0)â(1.0001,0,0) length=1.0mm; e3: closing LINE (1.0001,0,0)â(0,0,0) lengthâ1.0001mm; FixTails detects trailing short edges but not leading edges IS defect; asymmetric threshold logic â leading tail e1 IS undetected; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi122'),'2;1'); 5FILE_NAME('Twi122.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('',(0.0001,0.0,0.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(1.0001,0.0,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=DIRECTION('',(1.0,0.0,0.0)); 18#9=VECTOR('',#8,0.0001); 19#10=LINE('',#7,#9); 20#11=EDGE_CURVE('',#2,#4,#10,.T.); 21#12=ORIENTED_EDGE('',$,$,#11,.T.); 22#13=CARTESIAN_POINT('',(0.0001,0.0,0.0)); 23#14=DIRECTION('',(1.0,0.0,0.0)); 24#15=VECTOR('',#14,1.0); 25#16=LINE('',#13,#15); 26#17=EDGE_CURVE('',#4,#6,#16,.T.); 27#18=ORIENTED_EDGE('',$,$,#17,.T.); 28#19=CARTESIAN_POINT('',(1.0001,0.0,0.0)); 29#20=DIRECTION('',(-1.0,0.0,0.0)); 30#21=VECTOR('',#20,1.0001); 31#22=LINE('',#19,#21); 32#23=EDGE_CURVE('',#6,#2,#22,.T.); 33#24=ORIENTED_EDGE('',$,$,#23,.T.); 34#25=EDGE_LOOP('',(#12,#18,#24)); 35#26=GEOMETRIC_CURVE_SET('',(#25)); 36#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 37#9051=PRODUCT('Twi122','Twi122','',(#9050)); 38#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 39#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 40#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 41#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 42#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 43#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 44#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 45#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 46#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 47#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#26),#9060); 48#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 49ENDSEC; 50END-ISO-10303-21;