Twi222 — Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before any tail 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 tail repair is reached

Reproducer recipe

Expected kernel behavior

Beyond the main edge's end at (10,0,0) the boundary continues through several 0.2-unit collinear stubs to (11,0,0.1) and the closing edge then runs straight back to the origin, so the protrusion is a single hair spread across four edges — and the chain is separately broken between the stub ending at (10.2,0,0) and the one starting at (10.4,0,0). Trim the whole out-and-back excursion back to the branch point at (10,0,0) rather than deleting one edge, re-deriving what remains of the protrusion after each removal instead of walking a list captured earlier, and close or report the 0.2 break. Guard curve construction while doing so: every line in this file names a direction in its vector slot, and each unbuildable curve must be reported per entity.

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/* Twi222 - ShapeFix_Wire.FixTails consecutive-removal
3 * Defect: Wire with 3+ small tails at different positions. When FixTails removes
4 * the first tail, the wire topology changes, causing the second tail's classification
5 * to change. The removal alters edge indices, making subsequent tail detection invalid.
6 * The analyzer must track index changes sequentially but does not; second tail
7 * classification becomes wrong after first removal.
8 */
9HEADER;
10FILE_DESCRIPTION(('Twi222 test case','FixTails consecutive-removal — topology change on sequential removal'),'2;1');
11FILE_NAME('Twi222.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('Twi222','Twi222','',(#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 with 3 edges: main edge E1, tail T1, tail T2, tail T3 */
34#110=CARTESIAN_POINT('',(0.0,0.0,0.0));
35#111=CARTESIAN_POINT('',(10.0,0.0,0.0));
36#112=CARTESIAN_POINT('',(10.2,0.0,0.0));
37#113=CARTESIAN_POINT('',(10.4,0.0,0.0));
38#114=CARTESIAN_POINT('',(10.6,0.0,0.0));
39#115=CARTESIAN_POINT('',(10.8,0.0,0.0));
40#116=CARTESIAN_POINT('',(11.0,0.0,0.0));
41#117=CARTESIAN_POINT('',(0.0,0.0,0.0));
42/* Vertices V1-V6 for 6 edges that form the wire */
43#120=VERTEX_POINT('',#110);
44#121=VERTEX_POINT('',#111);
45#122=VERTEX_POINT('',#112);
46#123=VERTEX_POINT('',#113);
47#124=VERTEX_POINT('',#114);
48#125=VERTEX_POINT('',#115);
49/* Edge1: main edge 0.0 to 10.0 */
50#130=LINE('',#110,#102);
51#131=EDGE_CURVE('',#120,#121,#130,.T.);
52/* Edge2: small tail (gap) 10.0 to 10.2 (0.2 mm) */
53#132=LINE('',#111,#102);
54#133=EDGE_CURVE('',#121,#122,#132,.T.);
55/* Edge3: disconnected tail 10.4 to 10.6 (0.2 mm, gap from E2) */
56#134=LINE('',#113,#102);
57#135=EDGE_CURVE('',#123,#124,#134,.T.);
58/* Edge4: small tail 10.6 to 10.8 (0.2 mm) */
59#136=LINE('',#114,#102);
60#137=EDGE_CURVE('',#124,#125,#136,.T.);
61/* Edge5: small tail 10.8 to 11.0 (0.2 mm) */
62#138=LINE('',#115,#101);
63#139=CARTESIAN_POINT('',(11.0,0.0,0.1));
64#140=VERTEX_POINT('',#139);
65#141=EDGE_CURVE('',#125,#140,#138,.T.);
66/* Edge6: back to start 11.0 to 0.0 (closing edge) */
67#142=LINE('',#116,#102);
68#143=EDGE_CURVE('',#140,#120,#142,.T.);
69/* Oriented edges for EDGE_LOOP */
70#200=ORIENTED_EDGE('',*,*,#131,.T.);
71#201=ORIENTED_EDGE('',*,*,#133,.T.);
72#202=ORIENTED_EDGE('',*,*,#135,.T.);
73#203=ORIENTED_EDGE('',*,*,#137,.T.);
74#204=ORIENTED_EDGE('',*,*,#141,.T.);
75#205=ORIENTED_EDGE('',*,*,#143,.T.);
76/* Edge loop with 6 edges (main + 3 tails + reconnect + close) */
77#210=EDGE_LOOP('',(#200,#201,#202,#203,#204,#205));
78/* Face outer bound */
79#220=FACE_OUTER_BOUND('',#210,.T.);
80#221=ADVANCED_FACE('',(#220),#104,.T.);
81/* Shell and manifold representation */
82#250=CLOSED_SHELL('',(#221));
83#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#250));
84#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
85#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
86ENDSEC;
87END-ISO-10303-21;