step-examples/12-3b-wires/Twi182.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixTails very-small-tail
Reproducer recipe
Expected kernel behavior
The first four edges already close the unit square, and a fifth edge is appended after the closing edge: it joins two distinct vertex instances that both sit at (0,1,0), and its 3D `LINE` and its pcurve both have magnitude 0.0, so the listed sequence is no longer a connected chain. Reorder the edges into a connected chain, then remove the zero-length edge and merge its two vertex instances into the one already shared with edges 3 and 4, so closure points at a surviving vertex rather than a deleted end. The result must be the original four-edge closed square; if removing the edge would break closure, keep it and report it instead.
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/* Twi182: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 5 edges on PLANE; PLANE: normal +Z, origin (0,0,0); unit square A(0,0)->B(1,0)->C(1,1)->D(0,1) plus ultra-short tail D->Dt where Dt=(1e-15,1.0,0.0), tail length~1e-15; very_small_tail edge IS the mechanism: removing tail with length<tolerance causes wire endpoint to revert to D instead of closing at A; FixTails IS mechanism â tail removal breaks closure semantics; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi182'),'2;1'); 5FILE_NAME('Twi182.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('',(1.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(1.0,1.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,1.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,1.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#16,#18); 29#20=CARTESIAN_POINT('',(0.0,0.0)); 30#21=DIRECTION('',(1.0,0.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#20,#22); 33#24=DEFINITIONAL_REPRESENTATION('',(#23),#*); 34#25=PCURVE('',#5,#24); 35#26=SURFACE_CURVE('',#19,(#25),.PCURVE_S1.); 36#27=EDGE_CURVE('',#7,#9,#26,.T.); 37#28=ORIENTED_EDGE('',*,*,#27,.T.); 38#29=CARTESIAN_POINT('',(1.0,0.0,0.0)); 39#30=DIRECTION('',(0.0,1.0,0.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#29,#31); 42#33=CARTESIAN_POINT('',(1.0,0.0)); 43#34=DIRECTION('',(0.0,1.0)); 44#35=VECTOR('',#34,1.0); 45#36=LINE('',#33,#35); 46#37=DEFINITIONAL_REPRESENTATION('',(#36),#*); 47#38=PCURVE('',#5,#37); 48#39=SURFACE_CURVE('',#32,(#38),.PCURVE_S1.); 49#40=EDGE_CURVE('',#9,#11,#39,.T.); 50#41=ORIENTED_EDGE('',*,*,#40,.T.); 51#42=CARTESIAN_POINT('',(1.0,1.0,0.0)); 52#43=DIRECTION('',(-1.0,0.0,0.0)); 53#44=VECTOR('',#43,1.0); 54#45=LINE('',#42,#44); 55#46=CARTESIAN_POINT('',(1.0,1.0)); 56#47=DIRECTION('',(-1.0,0.0)); 57#48=VECTOR('',#47,1.0); 58#49=LINE('',#46,#48); 59#50=DEFINITIONAL_REPRESENTATION('',(#49),#*); 60#51=PCURVE('',#5,#50); 61#52=SURFACE_CURVE('',#45,(#51),.PCURVE_S1.); 62#53=EDGE_CURVE('',#11,#13,#52,.T.); 63#54=ORIENTED_EDGE('',*,*,#53,.T.); 64#55=CARTESIAN_POINT('',(0.0,1.0,0.0)); 65#56=DIRECTION('',(0.0,-1.0,0.0)); 66#57=VECTOR('',#56,1.0); 67#58=LINE('',#55,#57); 68#59=CARTESIAN_POINT('',(0.0,1.0)); 69#60=DIRECTION('',(0.0,-1.0)); 70#61=VECTOR('',#60,1.0); 71#62=LINE('',#59,#61); 72#63=DEFINITIONAL_REPRESENTATION('',(#62),#*); 73#64=PCURVE('',#5,#63); 74#65=SURFACE_CURVE('',#58,(#64),.PCURVE_S1.); 75#66=EDGE_CURVE('',#13,#7,#65,.T.); 76#67=ORIENTED_EDGE('',*,*,#66,.T.); 77#68=CARTESIAN_POINT('',(0.0,1.0,0.0)); 78#69=DIRECTION('',(1.0,0.0,0.0)); 79#70=VECTOR('',#69,0.0); 80#71=LINE('',#68,#70); 81#72=CARTESIAN_POINT('',(0.0,1.0)); 82#73=DIRECTION('',(1.0,0.0)); 83#74=VECTOR('',#73,0.0); 84#75=LINE('',#72,#74); 85#76=DEFINITIONAL_REPRESENTATION('',(#75),#*); 86#77=PCURVE('',#5,#76); 87#78=SURFACE_CURVE('',#71,(#77),.PCURVE_S1.); 88#79=EDGE_CURVE('very_small_tail',#13,#15,#78,.T.); 89#80=ORIENTED_EDGE('',*,*,#79,.T.); 90#81=EDGE_LOOP('',(#28,#41,#54,#67,#80)); 91#82=GEOMETRIC_CURVE_SET('',(#81)); 92#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 93#9051=PRODUCT('Twi182','Twi182','',(#9050)); 94#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 95#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 96#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 97#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 98#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 99#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 100#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 101#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 102#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 103#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#82),#9060); 104#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 105ENDSEC; 106END-ISO-10303-21;