Twi219 — A LINE inlines an anonymous aggregate where a reference to a vector is required, so the reader aborts before intersecting-edge repair is reached

§12.3b

crash topology

Sources

Description

A LINE inlines an anonymous aggregate where a reference to a vector is required, so the reader aborts before intersecting-edge repair is reached

Reproducer recipe

Expected kernel behavior

The bound holds only two edges — one from (0,0,0) to (10,0,0), one from (5,5,0) to (5,-5,0) — which share no vertex, so the contour is not even connected, and whose curves cross transversally at (5,0,0), interior to both. Detect a crossing that lies away from any shared vertex, split both edges there and introduce a common vertex, or else report the bound as unusable naming the crossing point. Reaching that decision at all requires surviving the file's lines, which put a direction entity in the slot reserved for a vector: a kernel that accepts the null curve that results and dereferences it will not live long enough to analyse any wire.

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/* Twi219 - ShapeFix_Wire.FixIntersectingEdges 2D-and-3D-disagree
3 * Defect: Two edges that intersect in 2D parameter space but not in 3D space
4 * (or vice versa). This is physically impossible without a degenerate surface
5 * or projection artifact. FixIntersectingEdges uses 2D intersection logic and
6 * splits edges at parameter intersection, but the 3D curves do not actually
7 * intersect at the computed split point, leaving geometry inconsistent.
8 * Reproduces: ShapeFix_Wire.FixIntersectingEdges_at3272 branch. */
9HEADER;
10FILE_DESCRIPTION(('Twi219 test case','2D-3D parameter space intersection mismatch'),'2;1');
11FILE_NAME('Twi219.stp','2026-06-15T00:00:00',(''),(''),'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#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
18#11=DIRECTION('',(0.0,0.0,1.0));
19#12=DIRECTION('',(1.0,0.0,0.0));
20#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
21#20=PLANE('',#13);
22/* First edge: 3D line from (0,0,0) to (10,0,0)
23 * 2D projection (0,0) to (10,0) on plane */
24#30=CARTESIAN_POINT('',(0.0,0.0,0.0));
25#31=CARTESIAN_POINT('',(10.0,0.0,0.0));
26#32=LINE('',#30,(DIRECTION('',(1.0,0.0,0.0)),1.0));
27#33=VERTEX_POINT('',(0.0,0.0,0.0));
28#34=VERTEX_POINT('',(10.0,0.0,0.0));
29#35=EDGE_CURVE('',#33,#34,#32,.T.);
30#36=ORIENTED_EDGE('',*,*,#35,.T.);
31/* Second edge: 3D line from (5,5,0) to (5,-5,0)
32 * Parameter projection (5,5) to (5,-5) on plane
33 * This creates 2D intersection at (5,0) but 3D curves don't intersect
34 * (one at y=0, one at y=±5) */
35#40=CARTESIAN_POINT('',(5.0,5.0,0.0));
36#41=CARTESIAN_POINT('',(5.0,-5.0,0.0));
37#42=LINE('',#40,(DIRECTION('',(0.0,-1.0,0.0)),1.0));
38#43=VERTEX_POINT('',(5.0,5.0,0.0));
39#44=VERTEX_POINT('',(5.0,-5.0,0.0));
40#45=EDGE_CURVE('',#43,#44,#42,.T.);
41#46=ORIENTED_EDGE('',*,*,#45,.T.);
42/* Wire containing both edges */
43#60=EDGE_LOOP('',(#36,#46));
44#61=FACE_OUTER_BOUND('',#60,.T.);
45#62=ADVANCED_FACE('',(#61),#20,.T.);
46/* Product chain (v3.2 schema) */
47#9000=PRODUCT_CONTEXT('',#1,'mechanical');
48#9001=PRODUCT('Twi219','Twi219','',(#9000));
49#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
50#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
51#9004=PRODUCT_DEFINITION('','',#9002,#9003);
52#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
53#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
54#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
55#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
56#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
57#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
58#9020=OPEN_SHELL('shell',(#62));
59#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020));
60#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
61#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
62ENDSEC;
63END-ISO-10303-21;