Tsh126 — ShapeAnalysis_Shell.CheckOrientedShells coplanar-faces

§12.3a

crash topology

Sources

Description

ShapeAnalysis_Shell.CheckOrientedShells coplanar-faces

Reproducer recipe

Expected kernel behavior

Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. Both faces lie on the exact same PLANE (z=0) and share an edge at x=5 — a coplanar, abutting pair rather than faces meeting at a dihedral angle. A kernel must never crash on this input: an orientation check that relies on comparing face normals across a shared edge is degenerate for coplanar neighbours (the normals are identical either way) and must fall back to comparing the shared edge's traversal direction in each face's loop instead of returning an inconclusive or undefined result.

Notes

RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by an inline entity instance written directly inside another entity's argument list (a vector constructor carrying a bare coordinate list where a direction reference belongs). A conforming exchange file may only define entity instances as top-level numbered statements, so the reader cannot bind the inline construct, the attribute resolves to null, and the abort happens during loading — before any repair routine runs. Full census in `BACKLOG.md` (M.18).

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/* Tsh126 - ShapeAnalysis_Shell.CheckOrientedShells coplanar-faces
3 * Defect: Shell with two coplanar abutting faces; CheckOrientedShells treats
4 * them as a flat surface and reports inconclusive result */
5HEADER;
6FILE_DESCRIPTION(('Tsh126 - coplanar abutting faces cause inconclusive orientation check','wave 26'),'2;1');
7FILE_NAME('Tsh126.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13
14/* Two coplanar rectangular faces sharing an edge */
15/* Face 1: left rectangle (0,0,0)-(5,0,0)-(5,10,0)-(0,10,0) */
16/* Face 2: right rectangle (5,0,0)-(10,0,0)-(10,10,0)-(5,10,0) */
17/* Both lie on same plane (z=0), share edge from (5,0,0) to (5,10,0) */
18
19#10=CARTESIAN_POINT('',(0,0,0));
20#11=CARTESIAN_POINT('',(5.0,0,0));
21#12=CARTESIAN_POINT('',(5.0,10.0,0));
22#13=CARTESIAN_POINT('',(0,10.0,0));
23#14=CARTESIAN_POINT('',(10.0,0,0));
24#15=CARTESIAN_POINT('',(10.0,10.0,0));
25
26#20=VERTEX_POINT('',#10);
27#21=VERTEX_POINT('',#11);
28#22=VERTEX_POINT('',#12);
29#23=VERTEX_POINT('',#13);
30#24=VERTEX_POINT('',#14);
31#25=VERTEX_POINT('',#15);
32
33/* Shared plane */
34#30=AXIS2_PLACEMENT_3D('shared_plane',#10,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
35#31=PLANE('',#30);
36
37/* Face 1 (left) edges */
38#50=LINE('',#10,VECTOR('',(1,0,0),5.0));
39#51=EDGE_CURVE('f1_e1_left',#20,#21,#50,.T.);
40#52=LINE('',#11,VECTOR('',(0,1,0),10.0));
41#53=EDGE_CURVE('f1_e2_shared',#21,#22,#52,.T.);
42#54=LINE('',#12,VECTOR('',(-1,0,0),5.0));
43#55=EDGE_CURVE('f1_e3_right',#22,#23,#54,.T.);
44#56=LINE('',#13,VECTOR('',(0,-1,0),10.0));
45#57=EDGE_CURVE('f1_e4_back',#23,#20,#56,.T.);
46
47/* Face 2 (right) edges */
48#60=LINE('',#11,VECTOR('',(1,0,0),5.0));
49#61=EDGE_CURVE('f2_e1_left',#21,#24,#60,.T.);
50#62=LINE('',#14,VECTOR('',(0,1,0),10.0));
51#63=EDGE_CURVE('f2_e2_right',#24,#25,#62,.T.);
52#64=LINE('',#15,VECTOR('',(-1,0,0),5.0));
53#65=EDGE_CURVE('f2_e3_shared',#25,#22,#64,.T.);
54#66=LINE('',#12,VECTOR('',(0,-1,0),10.0));
55#67=EDGE_CURVE('f2_e4_back',#22,#21,#66,.T.);
56
57/* Face 1 edge loop */
58#80=ORIENTED_EDGE('',*,*,#51,.T.);
59#81=ORIENTED_EDGE('',*,*,#53,.T.);
60#82=ORIENTED_EDGE('',*,*,#55,.T.);
61#83=ORIENTED_EDGE('',*,*,#57,.T.);
62#84=EDGE_LOOP('f1_loop',(#80,#81,#82,#83));
63
64/* Face 2 edge loop - opposite orientation for shared edge */
65#90=ORIENTED_EDGE('',*,*,#61,.T.);
66#91=ORIENTED_EDGE('',*,*,#63,.T.);
67#92=ORIENTED_EDGE('',*,*,#65,.T.);
68#93=ORIENTED_EDGE('',*,*,#67,.T.);
69#94=EDGE_LOOP('f2_loop',(#90,#91,#92,#93));
70
71/* Face bounds */
72#100=FACE_OUTER_BOUND('',#84,.T.);
73#101=FACE_OUTER_BOUND('',#94,.T.);
74
75/* Faces */
76#110=ADVANCED_FACE('f1_left',(#100),#31,.T.);
77#111=ADVANCED_FACE('f2_right',(#101),#31,.T.);
78
79/* Shell with coplanar abutting faces */
80#200=OPEN_SHELL('coplanar_shell',(#110,#111));
81
82/* Mandatory PRODUCT chain */
83#9000=PRODUCT_CONTEXT('',#1,'mechanical');
84#9001=PRODUCT('Tsh126','Tsh126','',(#9000));
85#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
86#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
87#9004=PRODUCT_DEFINITION('','',#9002,#9003);
88#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
89#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
90#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
91#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
92#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
93#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
94#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#200));
95#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
96#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
97ENDSEC;
98END-ISO-10303-21;