Twi228 — Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before large-coordinate gap analysis 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 large-coordinate gap analysis is reached

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming each unbuildable curve: all six 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. Once curves can be built, vertex #111 at (1000005.0,1000000.0,0.0) and vertex #112 at (1000005.0000001,1000000.0000001,0.0) still leave a genuine ~1e-7 gap between edges #131 and #133 at 1e6-scale coordinates — small in absolute terms but the file's declared 1.0E-7 accuracy is exactly that order, so a kernel must compare the actual endpoint distance rather than a scale-relative tolerance that would drown a real gap at this magnitude.

Notes

**See also**: Twi145. 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

Twi145

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi228 - ShapeAnalysis_Wire.CheckGap3d with-very-large-coordinates
3 * Defect: Adjacent vertices at coordinates ~1.0e6 with gap at ~1.0e-6 scale.
4 * CheckGap3d's relative tolerance fails because absolute coordinate magnitude
5 * dominates comparison, missing the small geometric gap.
6 */
7HEADER;
8FILE_DESCRIPTION(('Twi228 test case','CheckGap3d with-very-large-coordinates — relative tolerance overflow'),'2;1');
9FILE_NAME('Twi228.stp','2026-06-15T00:00:00',('[email protected]'),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
11ENDSEC;
12DATA;
13#1=APPLICATION_CONTEXT('automotive_design');
14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
15#100=CARTESIAN_POINT('',(1000000.0,1000000.0,1000000.0));
16#101=DIRECTION('',(0.0,0.0,1.0));
17#102=DIRECTION('',(1.0,0.0,0.0));
18#103=AXIS2_PLACEMENT_3D('',#100,#101,#102);
19#104=PLANE('',#103);
20/* Vertices at very large coordinate values */
21#110=CARTESIAN_POINT('',(1000000.0,1000000.0,0.0));
22#111=CARTESIAN_POINT('',(1000005.0,1000000.0,0.0));
23#112=CARTESIAN_POINT('',(1000005.0000001,1000000.0000001,0.0));
24#113=CARTESIAN_POINT('',(1000010.0,1000000.0,0.0));
25#114=CARTESIAN_POINT('',(1000010.0,1000005.0,0.0));
26#115=CARTESIAN_POINT('',(1000000.0,1000005.0,0.0));
27/* Create vertices */
28#120=VERTEX_POINT('',#110);
29#121=VERTEX_POINT('',#111);
30#122=VERTEX_POINT('',#112);
31#123=VERTEX_POINT('',#113);
32#124=VERTEX_POINT('',#114);
33#125=VERTEX_POINT('',#115);
34/* Edge1: normal segment from (1.0e6,1.0e6) to (1.0e6+5,1.0e6) */
35#130=LINE('',#110,#102);
36#131=EDGE_CURVE('',#120,#121,#130,.T.);
37/* Edge2: gap-containing segment - endpoint at (1.0e6+5,1.0e6)
38   Next vertex at (1.0e6+5.0000001,1.0e6.0000001) - gap of 1.0e-7 scale
39   At absolute scale 1.0e6, relative gap ~1.0e-13, below typical relative tolerance */
40#132=LINE('',#111,#102);
41#133=EDGE_CURVE('',#121,#122,#132,.T.);
42/* Edge3: continues from gap, from (1.0e6+5.0000001,1.0e6.0000001) to (1.0e6+10,1.0e6) */
43#134=DIRECTION('',(1.0,-0.00000005,0.0));
44#135=LINE('',#112,#134);
45#136=EDGE_CURVE('',#122,#123,#135,.T.);
46/* Edge4 through Edge6: complete rectangle */
47#137=DIRECTION('',(0.0,1.0,0.0));
48#138=LINE('',#113,#137);
49#139=EDGE_CURVE('',#123,#124,#138,.T.);
50#140=DIRECTION('',(-1.0,0.0,0.0));
51#141=LINE('',#114,#140);
52#142=EDGE_CURVE('',#124,#125,#141,.T.);
53#143=DIRECTION('',(0.0,-1.0,0.0));
54#144=LINE('',#115,#143);
55#145=EDGE_CURVE('',#125,#120,#144,.T.);
56/* Oriented edges */
57#200=ORIENTED_EDGE('',*,*,#131,.T.);
58#201=ORIENTED_EDGE('',*,*,#133,.T.);
59#202=ORIENTED_EDGE('',*,*,#136,.T.);
60#203=ORIENTED_EDGE('',*,*,#139,.T.);
61#204=ORIENTED_EDGE('',*,*,#142,.T.);
62#205=ORIENTED_EDGE('',*,*,#145,.T.);
63/* Closed edge loop */
64#210=EDGE_LOOP('',(#200,#201,#202,#203,#204,#205));
65/* Face */
66#220=FACE_OUTER_BOUND('',#210,.T.);
67#221=ADVANCED_FACE('',(#220),#104,.T.);
68/* Shell and manifold representation */
69#250=CLOSED_SHELL('',(#221));
70#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#250));
71#9000=PRODUCT_CONTEXT('',#1,'mechanical');
72#9001=PRODUCT('Twi228','Twi228','',(#9000));
73#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
74#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
75#9004=PRODUCT_DEFINITION('','',#9002,#9003);
76#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
77#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
78#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
79#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
80#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
81#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
82#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
83#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
84ENDSEC;
85END-ISO-10303-21;