step-examples/12-3b-wires/Twi229.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 degenerate-edge reorder repair is reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming each unbuildable curve: all five of the wire's LINE entities put the same DIRECTION (#102) where Part 21 requires a `#N` reference to a VECTOR, so no edge curve can be built. Independently, every one of this wire's five vertices (#110-#114) sits at the identical point (5.0,5.0,0.0), so even a correctly-built wire would have five zero-length edges; a kernel must reject a wire whose vertices are all coincident rather than attempt to order them.
Notes
**See also**: Twi139. 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/* Twi229 - ShapeFix_Wire.FixReorder all-edges-degenerate 3 * Defect: Wire with all edges degenerate (zero-length). FixReorder has no 4 * direction to use for ordering and produces unspecified result. 5 */ 6HEADER; 7FILE_DESCRIPTION(('Twi229 test case','FixReorder all-edges-degenerate â no ordering direction'),'2;1'); 8FILE_NAME('Twi229.stp','2026-06-15T00:00:00',('[email protected]'),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12#1=APPLICATION_CONTEXT('automotive_design'); 13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 14#100=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#101=DIRECTION('',(0.0,0.0,1.0)); 16#102=DIRECTION('',(1.0,0.0,0.0)); 17#103=AXIS2_PLACEMENT_3D('',#100,#101,#102); 18#104=PLANE('',#103); 19/* All vertices at same location - all edges will be degenerate */ 20#110=CARTESIAN_POINT('',(5.0,5.0,0.0)); 21#111=CARTESIAN_POINT('',(5.0,5.0,0.0)); 22#112=CARTESIAN_POINT('',(5.0,5.0,0.0)); 23#113=CARTESIAN_POINT('',(5.0,5.0,0.0)); 24#114=CARTESIAN_POINT('',(5.0,5.0,0.0)); 25/* Create degenerate vertices */ 26#120=VERTEX_POINT('',#110); 27#121=VERTEX_POINT('',#111); 28#122=VERTEX_POINT('',#112); 29#123=VERTEX_POINT('',#113); 30#124=VERTEX_POINT('',#114); 31/* Degenerate Edge1: zero-length from (5,5) to (5,5) */ 32#130=LINE('',#110,#102); 33#131=EDGE_CURVE('',#120,#121,#130,.T.); 34/* Degenerate Edge2: zero-length */ 35#132=LINE('',#111,#102); 36#133=EDGE_CURVE('',#121,#122,#132,.T.); 37/* Degenerate Edge3: zero-length */ 38#134=LINE('',#112,#102); 39#135=EDGE_CURVE('',#122,#123,#134,.T.); 40/* Degenerate Edge4: zero-length */ 41#136=LINE('',#113,#102); 42#137=EDGE_CURVE('',#123,#124,#136,.T.); 43/* Degenerate Edge5: zero-length closing */ 44#138=LINE('',#114,#102); 45#139=EDGE_CURVE('',#124,#120,#138,.T.); 46/* Oriented edges */ 47#200=ORIENTED_EDGE('',*,*,#131,.T.); 48#201=ORIENTED_EDGE('',*,*,#133,.T.); 49#202=ORIENTED_EDGE('',*,*,#135,.T.); 50#203=ORIENTED_EDGE('',*,*,#137,.T.); 51#204=ORIENTED_EDGE('',*,*,#139,.T.); 52/* Closed edge loop with all degenerate edges */ 53#210=EDGE_LOOP('',(#200,#201,#202,#203,#204)); 54/* Face */ 55#220=FACE_OUTER_BOUND('',#210,.T.); 56#221=ADVANCED_FACE('',(#220),#104,.T.); 57/* Shell and manifold representation */ 58#250=CLOSED_SHELL('',(#221)); 59#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#250)); 60#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 61#9001=PRODUCT('Twi229','Twi229','',(#9000)); 62#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 63#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 64#9004=PRODUCT_DEFINITION('','',#9002,#9003); 65#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 66#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 67#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 68#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 69#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 70#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 71#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 72#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 73ENDSEC; 74END-ISO-10303-21;