Twi218 — A LINE inlines an anonymous aggregate where a reference to a vector is required, so the reader aborts before connectivity analysis 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 connectivity analysis is reached

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming entity #34: its LINE's third argument is written as an inline aggregate `(DIRECTION('',(1.0,0.0,0.0)),1.0)` rather than a `#N` reference to a VECTOR — Part 21 requires an object reference there, so the curve cannot be built and the reader must abort naming that entity rather than silently coercing or dereferencing a null curve. Independently, the wire's second edge (#80) is built on a zero-radius CIRCLE (#61) between vertices #41 and #70, both at (5.0,0.0,0.0) — a genuinely degenerate, zero-length edge that a kernel must also detect and reject once the file can be parsed at all.

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/* Twi218 - ShapeAnalysis_Wire.CheckShapeConnect with-degenerate-vertex
3 * Defect: Wire's start or end vertex is degenerate (zero-radius circle or
4 * point-like geometry). CheckShapeConnect compares vertices using coordinates
5 * from BRep_Tool::Pnt(vertex), but for degenerate vertices, this coordinate
6 * may not meaningfully represent topology. The checker uses coordinate-based
7 * logic rather than topological identity, causing false positives or misses
8 * when degenerate endpoints are involved.
9 * Reproduces: ShapeAnalysis_Wire.CheckShapeConnect_at2117 branches. */
10HEADER;
11FILE_DESCRIPTION(('Twi218 test case','Degenerate vertex shape connectivity check'),'2;1');
12FILE_NAME('Twi218.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
13FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
14ENDSEC;
15DATA;
16#1=APPLICATION_CONTEXT('automotive_design');
17#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
18#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
19#11=DIRECTION('',(0.0,0.0,1.0));
20#12=DIRECTION('',(1.0,0.0,0.0));
21#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
22#20=PLANE('',#13);
23/* First edge: normal line from (0,0,0) to (5,0,0) */
24#30=CARTESIAN_POINT('',(0.0,0.0,0.0));
25#31=CARTESIAN_POINT('',(5.0,0.0,0.0));
26#32=CARTESIAN_POINT('',(0.0,0.0,0.0));
27#33=CARTESIAN_POINT('',(5.0,0.0,0.0));
28#34=LINE('',#32,(DIRECTION('',(1.0,0.0,0.0)),1.0));
29#40=VERTEX_POINT('',#30);
30#41=VERTEX_POINT('',#31);
31#50=EDGE_CURVE('',#40,#41,#34,.T.);
32#51=ORIENTED_EDGE('',*,*,#50,.T.);
33/* Second edge: degenerate circle at (5,0,0) (zero radius = point)
34 * This creates a degenerate vertex at the seam. */
35#60=AXIS2_PLACEMENT_3D('',(5.0,0.0,0.0),#11,#12);
36#61=CIRCLE('',#60,0.0);
37#70=VERTEX_POINT('',#33);
38#71=VERTEX_POINT('',#33);
39#80=EDGE_CURVE('',#41,#70,#61,.T.);
40#81=ORIENTED_EDGE('',*,*,#80,.T.);
41/* Wire with degenerate endpoint */
42#90=EDGE_LOOP('',(#51,#81));
43#91=FACE_OUTER_BOUND('',#90,.T.);
44#92=ADVANCED_FACE('',(#91),#20,.T.);
45/* Product chain (v3.2 schema) */
46#9000=PRODUCT_CONTEXT('',#1,'mechanical');
47#9001=PRODUCT('Twi218','Twi218','',(#9000));
48#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
49#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
50#9004=PRODUCT_DEFINITION('','',#9002,#9003);
51#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
52#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
53#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
54#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
55#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
56#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
57#9020=OPEN_SHELL('shell',(#92));
58#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020));
59#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
60#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
61ENDSEC;
62END-ISO-10303-21;