Twi145 — Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before 3D-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 3D-gap analysis 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. Once that is fixed, the file still separately places edge #111's end vertex at (10.0,0.0,0.0) while edge #126's start vertex #121 sits at (10.1,0.0,0.0) — a real 0.1-unit 3D gap between consecutive edges — which a kernel must detect by comparing actual endpoint coordinates rather than trusting the EDGE_LOOP's listed order.

Notes

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

Twi228

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi145 - ShapeAnalysis_Wire.CheckGap3d 3D-only with valid 2D
3 * Defect: wire on surface where 3D edges have a real gap but their parametric
4 * (2D) curves on the surface connect seamlessly; CheckGap3d misses this because
5 * it checks 2D first and skips 3D validation when 2D passes.
6 */
7HEADER;
8FILE_DESCRIPTION(('Twi145 test case','ShapeAnalysis_Wire.CheckGap3d 3D-only with valid 2D'),'2;1');
9FILE_NAME('Twi145.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
11ENDSEC;
12DATA;
13#1=APPLICATION_CONTEXT('automotive_design');
14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
15#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#11=DIRECTION('',(0.0,0.0,1.0));
17#12=DIRECTION('',(1.0,0.0,0.0));
18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
19
20#20=PLANE('',#13);
21/* Wire with edges whose 2D pcurves connect but 3D curves have gap */
22#100=CARTESIAN_POINT('',(0.0,0.0,0.0));
23#101=VERTEX_POINT('',#100);
24#102=CARTESIAN_POINT('',(10.0,0.0,0.0));
25#103=VERTEX_POINT('',#102);
26
27/* Edge 1: (0,0) -> (10,0) in 3D */
28#110=LINE('',#100,#12);
29#111=EDGE_CURVE('',#101,#103,#110,.T.);
30
31/* Edge 2: (10.1,0.0) -> (10.0,10.0) - starts at 10.1 instead of 10.0, creating 3D gap */
32#120=CARTESIAN_POINT('',(10.1,0.0,0.0));
33#121=VERTEX_POINT('',#120);
34#122=CARTESIAN_POINT('',(10.0,10.0,0.0));
35#123=VERTEX_POINT('',#122);
36#124=DIRECTION('',(0.0,1.0,0.0));
37#125=LINE('',#120,#124);
38#126=EDGE_CURVE('',#121,#123,#125,.T.);
39
40/* Edge 3: (10,10) -> (0,10) */
41#130=CARTESIAN_POINT('',(10.0,10.0,0.0));
42#131=VERTEX_POINT('',#130);
43#132=CARTESIAN_POINT('',(0.0,10.0,0.0));
44#133=VERTEX_POINT('',#132);
45#134=DIRECTION('',(0.0,-1.0,0.0));
46#135=LINE('',#130,#134);
47#136=EDGE_CURVE('',#131,#133,#135,.T.);
48
49/* Edge 4: (0,10) -> (0,0) */
50#140=CARTESIAN_POINT('',(0.0,10.0,0.0));
51#141=VERTEX_POINT('',#140);
52#142=DIRECTION('',(0.0,-1.0,0.0));
53#143=LINE('',#140,#142);
54#144=EDGE_CURVE('',#141,#101,#143,.T.);
55
56/* Edge loop with 3D gap at edge 2 start */
57#150=ORIENTED_EDGE('',*,*,#111,.T.);
58#151=ORIENTED_EDGE('',*,*,#126,.T.);
59#152=ORIENTED_EDGE('',*,*,#136,.T.);
60#153=ORIENTED_EDGE('',*,*,#144,.T.);
61#154=EDGE_LOOP('',(#150,#151,#152,#153));
62#155=FACE_OUTER_BOUND('',#154,.T.);
63#156=ADVANCED_FACE('',(#155),#20,.T.);
64#8000=OPEN_SHELL('',(#156));
65
66/* PRODUCT CHAIN - Mandatory */
67#9000=PRODUCT_CONTEXT('',#1,'mechanical');
68#9001=PRODUCT('Twi145','Twi145','',(#9000));
69#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
70#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
71#9004=PRODUCT_DEFINITION('','',#9002,#9003);
72#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
73#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
74#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
75#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
76#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
77#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
78#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000));
79#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
80#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
81ENDSEC;
82END-ISO-10303-21;