step-examples/12-3b-wires/Twi128.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckTail tail-edge orientation flip
Reproducer recipe
Expected kernel behavior
Recognize the fifth edge as an out-and-back tail regardless of its orientation flag: the rectangle already closes after four edges, back at (0,0,0); edge 5's own EDGE_CURVE runs from (0.0001,0.0,0.0) to (0,0,0), and with its ORIENTED_EDGE marked reversed it is walked (0,0,0)→(0.0001,0,0) — a 0.0001-unit spur off the already-closed corner that goes nowhere and returns to nothing. A kernel must detect this tail from its geometry (a short edge whose far end connects to nothing else) independent of whether its ORIENTED_EDGE sense is forward or reversed, and drop it or reject the wire naming it, rather than let the orientation flag suppress detection.
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/* Twi128: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 5 edges; e1..e4: rectangle 1mmÃ1mm â (0,0,0)â(1,0,0)â(1,1,0)â(0,1,0)â(0,0,0) all .T.; e5: tail edge stored as EDGE_CURVE v5(0.0001,0,0)âv4(0,0,0), used .F. in loop; effective direction in loop: (0,0,0)â(0.0001,0,0) â very short 0.0001mm tail; CheckTail sees .F. orientation on last edge, assumes .T. required IS defect; orientation polarity assumption causes tail miss; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi128'),'2;1'); 5FILE_NAME('Twi128.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('',(1.0,0.0,0.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(1.0,1.0,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=CARTESIAN_POINT('',(0.0,1.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=CARTESIAN_POINT('',(0.0001,0.0,0.0)); 19#10=VERTEX_POINT('',#9); 20#11=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=VECTOR('',#12,1.0); 23#14=LINE('',#11,#13); 24#15=EDGE_CURVE('',#2,#4,#14,.T.); 25#16=ORIENTED_EDGE('',$,$,#15,.T.); 26#17=CARTESIAN_POINT('',(1.0,0.0,0.0)); 27#18=DIRECTION('',(0.0,1.0,0.0)); 28#19=VECTOR('',#18,1.0); 29#20=LINE('',#17,#19); 30#21=EDGE_CURVE('',#4,#6,#20,.T.); 31#22=ORIENTED_EDGE('',$,$,#21,.T.); 32#23=CARTESIAN_POINT('',(1.0,1.0,0.0)); 33#24=DIRECTION('',(-1.0,0.0,0.0)); 34#25=VECTOR('',#24,1.0); 35#26=LINE('',#23,#25); 36#27=EDGE_CURVE('',#6,#8,#26,.T.); 37#28=ORIENTED_EDGE('',$,$,#27,.T.); 38#29=CARTESIAN_POINT('',(0.0,1.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=EDGE_CURVE('',#8,#2,#32,.T.); 43#34=ORIENTED_EDGE('',$,$,#33,.T.); 44#35=CARTESIAN_POINT('',(0.0001,0.0,0.0)); 45#36=DIRECTION('',(-1.0,0.0,0.0)); 46#37=VECTOR('',#36,0.0001); 47#38=LINE('',#35,#37); 48#39=EDGE_CURVE('',#10,#2,#38,.T.); 49#40=ORIENTED_EDGE('',$,$,#39,.F.); 50#41=EDGE_LOOP('',(#16,#22,#28,#34,#40)); 51#42=GEOMETRIC_CURVE_SET('',(#41)); 52#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 53#9051=PRODUCT('Twi128','Twi128','',(#9050)); 54#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 55#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 56#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 57#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 58#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 59#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 60#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 61#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 62#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 63#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#42),#9060); 64#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 65ENDSEC; 66END-ISO-10303-21;