Twi224 — Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before any 3D gap repair is reached

§12.3b

crash topology

Sources

Description

Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before any 3D gap repair is reached

Reproducer recipe

Expected kernel behavior

Before closing a gap by moving a curve's end, weigh the gap against the edges it would alter: the 2.5-unit separation between the edge ending at (1,0,0) and the edge starting at (3.5,0,0) exceeds the whole 1.0-unit length of the first edge. Refuse to extend an edge by more than its own length — insert a fresh bridging edge between the two free vertices instead, or report the wire as unrepairably open quoting the gap and both edge lengths. Getting that far means refusing to build a curve whose vector attribute holds a direction entity, as all three lines here do, and saying which entity failed rather than dereferencing a null curve.

Notes

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

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi224 - ShapeFix_Wire.FixGaps3d gap-bigger-than-edge
3 * Defect: Adjacent edges with a gap exceeding the smaller edge's length.
4 * FixGaps3d attempts to bridge the gap by extending edges, but the bridge
5 * distance is longer than one of the edges being extended. This creates
6 * an impossible constraint: the fix cannot close the gap without drastically
7 * altering edge geometry, leading to repair failure or incorrect topology.
8 */
9HEADER;
10FILE_DESCRIPTION(('Twi224 test case','FixGaps3d gap-bigger-than-edge — bridge gap exceeds smallest edge'),'2;1');
11FILE_NAME('Twi224.stp','2026-06-15T00:00:00',('[email protected]'),(''),'cad-research-suite','','');
12FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
13ENDSEC;
14DATA;
15#1=APPLICATION_CONTEXT('automotive_design');
16#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
17#9000=PRODUCT_CONTEXT('',#1,'mechanical');
18#9001=PRODUCT('Twi224','Twi224','',(#9000));
19#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
20#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
21#9004=PRODUCT_DEFINITION('','',#9002,#9003);
22#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
23#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
24#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
25#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
26#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
27#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
28#100=CARTESIAN_POINT('',(0.0,0.0,0.0));
29#101=DIRECTION('',(0.0,0.0,1.0));
30#102=DIRECTION('',(1.0,0.0,0.0));
31#103=AXIS2_PLACEMENT_3D('',#100,#101,#102);
32#104=PLANE('',#103);
33/* Wire vertices: E1 is short (1.0 mm), large gap (2.5 mm), E2 is medium (3.0 mm) */
34#110=CARTESIAN_POINT('',(0.0,0.0,0.0));
35#111=CARTESIAN_POINT('',(1.0,0.0,0.0));
36#112=CARTESIAN_POINT('',(3.5,0.0,0.0));
37#113=CARTESIAN_POINT('',(6.5,0.0,0.0));
38#114=CARTESIAN_POINT('',(0.0,0.0,0.0));
39/* Create vertices */
40#120=VERTEX_POINT('',#110);
41#121=VERTEX_POINT('',#111);
42#122=VERTEX_POINT('',#112);
43#123=VERTEX_POINT('',#113);
44/* Edge1: short edge 0.0 to 1.0 (length 1.0 mm) */
45#130=LINE('',#110,#102);
46#131=EDGE_CURVE('',#120,#121,#130,.T.);
47/* Edge2: large gap from 1.0 to 3.5 (gap = 2.5 mm, larger than Edge1 length) */
48#132=LINE('',#112,#102);
49#133=EDGE_CURVE('',#122,#123,#132,.T.);
50/* Edge3: closing edge back to start */
51#134=LINE('',#113,#102);
52#135=EDGE_CURVE('',#123,#120,#134,.T.);
53/* Oriented edges */
54#200=ORIENTED_EDGE('',*,*,#131,.T.);
55#201=ORIENTED_EDGE('',*,*,#133,.T.);
56#202=ORIENTED_EDGE('',*,*,#135,.T.);
57/* Edge loop with gap problem */
58#210=EDGE_LOOP('',(#200,#201,#202));
59/* Face outer bound */
60#220=FACE_OUTER_BOUND('',#210,.T.);
61#221=ADVANCED_FACE('',(#220),#104,.T.);
62/* Shell and manifold representation */
63#250=CLOSED_SHELL('',(#221));
64#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#250));
65#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
66#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
67ENDSEC;
68END-ISO-10303-21;