step-examples/12-3b-wires/Twi139.stp
Sources
- synthesized — no external source cited
Description
Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before reorder-seed repair is reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming each unbuildable curve: every one of the wire's five LINE entities (#110, #116, #122, #127, #131) has a DIRECTION where Part 21 requires a `#N` reference to a VECTOR, so no edge curve can be constructed at all. A kernel must report the first construction failure per entity rather than dereferencing a null curve; whatever wire-ordering question the pentagon-with-a-reflex-vertex-at-(0.5,0.5) shape was meant to pose is unreachable until every LINE in the file is fixed.
Notes
**See also**: Twi226, Twi229. RUNTIME-VERIFIED 2026-08-08 — the recorded crash comes from this file's straight-line direction argument, which references a plain direction where the schema declares a vector carrying a magnitude; repairing that one reference makes the file load, so the titled condition is never reached. See BACKLOG (M).
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi139 - ShapeFix_Wire.FixReorder seed-edge choice 3 * Defect: ShapeFix_Wire.FixReorder seed-edge choice 4 */ 5HEADER; 6FILE_DESCRIPTION(('Twi139 test case','ShapeFix_Wire.FixReorder seed-edge choice'),'2;1'); 7FILE_NAME('Twi139.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 9ENDSEC; 10DATA; 11#1=APPLICATION_CONTEXT('automotive_design'); 12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 13#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 14#11=DIRECTION('',(0.0,0.0,1.0)); 15#12=DIRECTION('',(1.0,0.0,0.0)); 16#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 17 18#20=PLANE('',#13); 19/* Wire with 5 edges where reorder algorithm picks wrong seed */ 20#100=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#101=VERTEX_POINT('',#100); 22#102=CARTESIAN_POINT('',(1.0,0.0,0.0)); 23#103=VERTEX_POINT('',#102); 24#104=CARTESIAN_POINT('',(1.0,1.0,0.0)); 25#105=VERTEX_POINT('',#104); 26#106=CARTESIAN_POINT('',(0.0,1.0,0.0)); 27#107=VERTEX_POINT('',#106); 28#108=CARTESIAN_POINT('',(0.5,0.5,0.0)); 29#109=VERTEX_POINT('',#108); 30 31/* Edge 0: (0,0) -> (1,0) */ 32#110=LINE('',#100,#12); 33#111=EDGE_CURVE('',#101,#103,#110,.T.); 34 35/* Edge 1: (1,0) -> (1,1) */ 36#115=DIRECTION('',(0.0,1.0,0.0)); 37#116=LINE('',#102,#115); 38#117=EDGE_CURVE('',#103,#105,#116,.T.); 39 40/* Edge 2: (1,1) -> (0.5,0.5) - reversed orientation */ 41#120=CARTESIAN_POINT('',(0.5,0.5,0.0)); 42#121=DIRECTION('',(0.5,-0.5,0.0)); 43#122=LINE('',#104,#121); 44#123=EDGE_CURVE('',#105,#109,#122,.F.); 45 46/* Edge 3: (0.5,0.5) -> (0,1) */ 47#125=CARTESIAN_POINT('',(0.0,1.0,0.0)); 48#126=DIRECTION('',(0.5,0.5,0.0)); 49#127=LINE('',#108,#126); 50#128=EDGE_CURVE('',#109,#107,#127,.F.); 51 52/* Edge 4: (0,1) -> (0,0) */ 53#130=DIRECTION('',(0.0,-1.0,0.0)); 54#131=LINE('',#106,#130); 55#132=EDGE_CURVE('',#107,#101,#131,.T.); 56 57#140=ORIENTED_EDGE('',*,*,#111,.T.); 58#141=ORIENTED_EDGE('',*,*,#117,.T.); 59#142=ORIENTED_EDGE('',*,*,#123,.T.); 60#143=ORIENTED_EDGE('',*,*,#128,.T.); 61#144=ORIENTED_EDGE('',*,*,#132,.T.); 62#145=EDGE_LOOP('',(#140,#141,#142,#143,#144)); 63#146=FACE_OUTER_BOUND('',#145,.T.); 64#147=ADVANCED_FACE('',(#146),#20,.T.); 65#8000=OPEN_SHELL('',(#147)); 66 67/* PRODUCT CHAIN - Mandatory */ 68#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 69#9001=PRODUCT('Twi139','Twi139','',(#9000)); 70#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 71#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 72#9004=PRODUCT_DEFINITION('','',#9002,#9003); 73#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 74#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 75#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 76#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 77#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 78#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 79#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000)); 80#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 81#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 82ENDSEC; 83END-ISO-10303-21;