Twi223 — Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before order-mode-disagreement 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 order-mode-disagreement analysis is reached

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming each unbuildable curve: all three of the wire's LINE entities point at #101, a DIRECTION, where Part 21 requires a `#N` reference to a VECTOR, so no edge curve on this cylindrical wire can be built. The seam-crossing scenario the old title described — PCURVEs parametrized at u=0, u=π/2, and u=π wrapping around a periodic surface — is unreachable until every LINE in the file is fixed.

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/* Twi223 - ShapeAnalysis_Wire.CheckOrder mode-3D-vs-2D-disagree
3 * Defect: Wire whose 3D edge order differs from the parametric curve (PCurve)
4 * order on the host surface. This occurs when the surface has a seam jump or
5 * periodicity discontinuity. CheckOrder picks either 3D or 2D mode but cannot
6 * detect that the two orderings contradict each other. The analyzer cannot
7 * report that the wire is over-constrained or topologically degenerate.
8 */
9HEADER;
10FILE_DESCRIPTION(('Twi223 test case','CheckOrder mode-3D-vs-2D-disagree — surface seam causes coordinate mismatch'),'2;1');
11FILE_NAME('Twi223.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('Twi223','Twi223','',(#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/* Cylindrical surface with seam at u=0/2π */
33#104=AXIS2_PLACEMENT_3D('',#100,#101,#102);
34#105=CIRCLE('',#104,5.0);
35#106=CYLINDRICAL_SURFACE('',#104,5.0);
36/* Wire vertices on cylinder */
37#110=CARTESIAN_POINT('',(5.0,0.0,0.0));
38#111=CARTESIAN_POINT('',(5.0,0.0,5.0));
39#112=CARTESIAN_POINT('',(5.0,0.0,10.0));
40#113=CARTESIAN_POINT('',(5.0,0.0,0.0));
41/* 3D path goes: v1 -> v2 -> v3 -> v1
42   But parametric path u changes as: u=0 -> u=π/2 -> u=-π (=π) -> u=-π/2
43   This creates a 3D ordering that conflicts with 2D parametric ordering due to seam */
44#120=VERTEX_POINT('',#110);
45#121=VERTEX_POINT('',#111);
46#122=VERTEX_POINT('',#112);
47/* Edge1: 3D edge along u=0 line at z=0..5 */
48#130=PCURVE('',#106,(PARAMETRIC_B_SPLINE_CURVE(1,((0.0,0.0),(0.0,5.0)),3,0,0,0)));
49#131=LINE('',#110,#101);
50#132=EDGE_CURVE('',#120,#121,#131,.T.);
51/* Edge2: 3D edge along u=π/2 line at z=5..10 */
52#133=PCURVE('',#106,(PARAMETRIC_B_SPLINE_CURVE(1,((1.5707963,5.0),(1.5707963,10.0)),3,0,0,0)));
53#134=LINE('',#111,#101);
54#135=EDGE_CURVE('',#121,#122,#134,.T.);
55/* Edge3: 3D edge along u=-π line back to start, but seam jump means
56   parametric order reverses relative to 3D */
57#136=PCURVE('',#106,(PARAMETRIC_B_SPLINE_CURVE(1,((3.14159265,10.0),(3.14159265,0.0)),3,0,0,0)));
58#137=LINE('',#112,#101);
59#138=EDGE_CURVE('',#122,#120,#137,.T.);
60/* Oriented edges */
61#200=ORIENTED_EDGE('',*,*,#132,.T.);
62#201=ORIENTED_EDGE('',*,*,#135,.T.);
63#202=ORIENTED_EDGE('',*,*,#138,.T.);
64/* Edge loop with seam-conflict edges */
65#210=EDGE_LOOP('',(#200,#201,#202));
66/* Face outer bound on cylindrical surface */
67#220=FACE_OUTER_BOUND('',#210,.T.);
68#221=ADVANCED_FACE('',(#220),#106,.T.);
69/* Shell */
70#250=CLOSED_SHELL('',(#221));
71#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#250));
72#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
73#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
74ENDSEC;
75END-ISO-10303-21;