step-examples/12-3b-wires/Twi226.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 boundary-intersection repair is reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming each unbuildable curve: all four of the wire's LINE entities put a DIRECTION where Part 21 requires a `#N` reference to a VECTOR, so no edge curve can be built. Whatever boundary-touch question the (10.0,5.0,0.0)-to-(9.9,5.1,0.0) corner was meant to pose is unreachable until every LINE in the file is fixed.
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/* Twi226 - ShapeFix_Wire.FixIntersectingEdges with-edge-on-surface-boundary 3 * Defect: Edge that ends exactly on the surface trim boundary. When 4 * FixIntersectingEdges processes edges that touch the trim boundary, its 5 * algorithm for identifying and removing intersection points fails because 6 * the intersection detection treats boundary points as interior intersections. 7 * The repair logic produces inconsistent topology: either missing edges or 8 * spurious vertex insertions at the boundary. 9 */ 10HEADER; 11FILE_DESCRIPTION(('Twi226 test case','FixIntersectingEdges with-edge-on-surface-boundary â trim boundary intersection'),'2;1'); 12FILE_NAME('Twi226.stp','2026-06-15T00:00:00',('[email protected]'),(''),'cad-research-suite','',''); 13FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('automotive_design'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 18#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 19#9001=PRODUCT('Twi226','Twi226','',(#9000)); 20#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 21#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 22#9004=PRODUCT_DEFINITION('','',#9002,#9003); 23#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 24#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 25#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 26#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 27#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 28#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 29#100=CARTESIAN_POINT('',(0.0,0.0,0.0)); 30#101=DIRECTION('',(0.0,0.0,1.0)); 31#102=DIRECTION('',(1.0,0.0,0.0)); 32#103=AXIS2_PLACEMENT_3D('',#100,#101,#102); 33#104=PLANE('',#103); 34/* Wire on trimmed surface where one edge terminates at the surface boundary 35 Surface domain: u â [0, 10], v â [0, 10] 36 Wire: E1 normal, E2 touches boundary at u=10, E3 crosses boundary intersection 37 FixIntersectingEdges will see E2's endpoint on the boundary and may 38 misclassify it as an intersection needing repair, producing inconsistent topology. 39*/ 40#110=CARTESIAN_POINT('',(0.0,0.0,0.0)); 41#111=CARTESIAN_POINT('',(5.0,0.0,0.0)); 42#112=CARTESIAN_POINT('',(10.0,5.0,0.0)); 43#113=CARTESIAN_POINT('',(9.9,5.1,0.0)); 44#114=CARTESIAN_POINT('',(0.0,0.0,0.0)); 45/* Create vertices */ 46#120=VERTEX_POINT('',#110); 47#121=VERTEX_POINT('',#111); 48#122=VERTEX_POINT('',#112); 49#123=VERTEX_POINT('',#113); 50/* Edge1: normal interior edge from (0,0) to (5,0) */ 51#130=LINE('',#110,#102); 52#131=EDGE_CURVE('',#120,#121,#130,.T.); 53/* Edge2: edge approaching boundary, from (5,0) to (10,5) 54 This edge's endpoint is exactly on the surface trim at u=10 */ 55#132=DIRECTION('',(1.0,1.0,0.0)); 56#133=LINE('',#111,#132); 57#134=EDGE_CURVE('',#121,#122,#133,.T.); 58/* Edge3: edge touching boundary then exiting, from (10,5) to (9.9,5.1) 59 This creates an intersection detection problem: E3 starts exactly where 60 E2 ends (on boundary) and appears to cross the boundary intersection */ 61#135=DIRECTION('',(-0.1,0.1,0.0)); 62#136=LINE('',#112,#135); 63#137=EDGE_CURVE('',#122,#123,#136,.T.); 64/* Edge4: close wire back to start from (9.9,5.1) to (0,0) */ 65#138=DIRECTION('',(-1.0,-0.5,0.0)); 66#139=LINE('',#113,#138); 67#140=EDGE_CURVE('',#123,#120,#139,.T.); 68/* Oriented edges */ 69#200=ORIENTED_EDGE('',*,*,#131,.T.); 70#201=ORIENTED_EDGE('',*,*,#134,.T.); 71#202=ORIENTED_EDGE('',*,*,#137,.T.); 72#203=ORIENTED_EDGE('',*,*,#140,.T.); 73/* Edge loop with boundary-touching edges */ 74#210=EDGE_LOOP('',(#200,#201,#202,#203)); 75/* Face outer bound on trimmed plane */ 76#220=FACE_OUTER_BOUND('',#210,.T.); 77#221=ADVANCED_FACE('',(#220),#104,.T.); 78/* Shell and manifold representation */ 79#250=CLOSED_SHELL('',(#221)); 80#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#250)); 81#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 82#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 83ENDSEC; 84END-ISO-10303-21;