Ad102 — Crash transferring HLR-created shapes via STEP writer

§12.11 adversarial

P2 — spec deviation (no data loss)

adversarial

Sources

Description

A shape produced by Hidden Line Removal (HLR) consists of 2D edges in 3D space (no faces, no surfaces). The STEP writer's topology-to-STEP translator expects every edge to belong to a face; segfaults on the bare-edge HLR result.

Reproducer recipe

Compound of `EDGE_CURVE`s with no incident face; pass to STEP writer.

Expected kernel behavior

Heal and accept: writer handles bare-edge / bare-vertex shapes; emit them as `WIRE_SHELL` representations with no face references. Must not crash on bare shapes.

Notes

**See also**: Tsh037.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Tsh037

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Ad102: bare-edge HLR shape: EDGE_CURVEs with no incident face; STEP writer expects every edge to belong to a face; segfaults on bare-edge / bare-vertex HLR result; writer must handle bare shapes via WIRE_SHELL representation with no face references; must not crash on bare shapes; OCCT MANTIS#0027070; See also Tsh037; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Ad102'),'2;1');
5FILE_NAME('Ad102.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=GEOMETRIC_CURVE_SET('',(#1));
11#3=CARTESIAN_POINT('hlr_p0',(-1.0,1.0,0.0));
12#4=CARTESIAN_POINT('hlr_p1',(1.0,1.0,0.0));
13#5=VERTEX_POINT('hlr_v0',#3);
14#6=VERTEX_POINT('hlr_v1',#4);
15#7=DIRECTION('',(1.0,0.0,0.0));
16#8=VECTOR('',#7,2.0);
17#9=LINE('hlr_silhouette_line1',#3,#8);
18#10=EDGE_CURVE('hlr_edge1',#5,#6,#9,.T.);
19#11=CARTESIAN_POINT('hlr_p2',(-1.0,-1.0,0.0));
20#12=CARTESIAN_POINT('hlr_p3',(1.0,-1.0,0.0));
21#13=VERTEX_POINT('hlr_v2',#11);
22#14=VERTEX_POINT('hlr_v3',#12);
23#15=VECTOR('',#7,2.0);
24#16=LINE('hlr_silhouette_line2',#11,#15);
25#17=EDGE_CURVE('hlr_edge2',#13,#14,#16,.T.);
26#18=CARTESIAN_POINT('hlr_p4',(0.0,-1.0,0.0));
27#19=CARTESIAN_POINT('hlr_p5',(0.0,1.0,0.0));
28#20=VERTEX_POINT('hlr_v4',#18);
29#21=VERTEX_POINT('hlr_v5',#19);
30#22=DIRECTION('',(0.0,1.0,0.0));
31#23=VECTOR('',#22,2.0);
32#24=LINE('hlr_silhouette_line3',#18,#23);
33#25=EDGE_CURVE('hlr_edge3',#20,#21,#24,.T.);
34#26=GEOMETRIC_CURVE_SET('hlr_result',(#10,#17,#25));
35ENDSEC;
36END-ISO-10303-21;