Tsh162 — ShapeFix_Shell.Perform reports-fixed-but-still-broken

§12.3a

crash topology

Sources

Description

ShapeFix_Shell.Perform reports-fixed-but-still-broken

Reproducer recipe

Expected kernel behavior

Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. Four of the pyramid's five faces (base plus south/east/north sides) carry same_sense=.T.; the west side carries .F. with its EDGE_LOOP also authored with reversed edge senses relative to the other three side faces. A kernel must never crash on this input, and after applying an orientation fix it must re-verify the shell against the same consistency test used to detect the defect before reporting success — declaring the fix done without that re-check can leave the reported status disagreeing with the shell's actual, still-inconsistent state.

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/* Tsh162 - ShapeFix_Shell.Perform reports-fixed-but-still-broken
3 * Defect: Shell with subtle topological defect where Perform reports myStatus=DONE
4 * (indicating successful fix) but the defect persists in the topology. Five faces
5 * forming a pyramid base with flipped apex face and mismatched edge sense. */
6HEADER;
7FILE_DESCRIPTION(('Tsh162 test case','Shell defect persists after Perform'),'2;1');
8FILE_NAME('Tsh162.stp','2026-06-15T00:00:00',(''),(''),'auto-generated','','');
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
10ENDSEC;
11DATA;
12#1=APPLICATION_CONTEXT('automotive_design');
13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
14/* Pyramid: square base + 4 triangular sides, apex flipped */
15#100=CARTESIAN_POINT('base_sw',(0.0,0.0,0.0));
16#101=CARTESIAN_POINT('base_se',(1.0,0.0,0.0));
17#102=CARTESIAN_POINT('base_ne',(1.0,1.0,0.0));
18#103=CARTESIAN_POINT('base_nw',(0.0,1.0,0.0));
19#104=CARTESIAN_POINT('apex',(0.5,0.5,1.0));
20#110=VERTEX_POINT('',#100); #111=VERTEX_POINT('',#101);
21#112=VERTEX_POINT('',#102); #113=VERTEX_POINT('',#103);
22#114=VERTEX_POINT('',#104);
23/* Edges */
24#200=DIRECTION('',(1.0,0.0,0.0));
25#201=VECTOR('',#200,1.0);
26#202=DIRECTION('',(0.0,1.0,0.0));
27#203=VECTOR('',#202,1.0);
28#204=DIRECTION('',(-0.5,0.0,1.0)); #205=VECTOR('',#204,1.12);
29#206=DIRECTION('',(0.5,0.0,1.0)); #207=VECTOR('',#206,1.12);
30#208=DIRECTION('',(0.5,1.0,1.0)); #209=VECTOR('',#208,1.58);
31#210=DIRECTION('',(-0.5,1.0,1.0)); #211=VECTOR('',#210,1.58);
32#220=LINE('',#100,#201); #221=EDGE_CURVE('base_e',#110,#111,#220,.T.);
33#222=LINE('',#101,#203); #223=EDGE_CURVE('base_n',#111,#112,#222,.T.);
34#224=LINE('',#103,#201); #225=EDGE_CURVE('base_s',#113,#112,#224,.T.);
35#226=LINE('',#100,#203); #227=EDGE_CURVE('base_w',#110,#113,#226,.T.);
36#228=LINE('',#100,#204); #229=EDGE_CURVE('apex_sw',#110,#114,#228,.T.);
37#230=LINE('',#101,#206); #231=EDGE_CURVE('apex_se',#111,#114,#230,.T.);
38#232=LINE('',#102,#210); #233=EDGE_CURVE('apex_ne',#112,#114,#232,.T.);
39#234=LINE('',#103,#211); #235=EDGE_CURVE('apex_nw',#113,#114,#234,.T.);
40/* Base face (square) */
41#300=ORIENTED_EDGE('',*,*,#221,.T.);
42#301=ORIENTED_EDGE('',*,*,#223,.T.);
43#302=ORIENTED_EDGE('',*,*,#225,.F.);
44#303=ORIENTED_EDGE('',*,*,#227,.F.);
45#304=EDGE_LOOP('',(#300,#301,#302,#303));
46#305=FACE_OUTER_BOUND('',#304,.T.);
47#306=AXIS2_PLACEMENT_3D('',#100,#202,#200);
48#307=PLANE('base_plane',#306);
49#310=ADVANCED_FACE('base',(#305),#307,.T.);
50/* South face (triangle 0,1,4) */
51#320=ORIENTED_EDGE('',*,*,#221,.T.);
52#321=ORIENTED_EDGE('',*,*,#231,.T.);
53#322=ORIENTED_EDGE('',*,*,#229,.F.);
54#323=EDGE_LOOP('',(#320,#321,#322));
55#324=FACE_OUTER_BOUND('',#323,.T.);
56#325=AXIS2_PLACEMENT_3D('',#100,#206,#200);
57#326=PLANE('south_plane',#325);
58#330=ADVANCED_FACE('south',(#324),#326,.T.);
59/* East face (triangle 1,2,4) */
60#340=ORIENTED_EDGE('',*,*,#223,.T.);
61#341=ORIENTED_EDGE('',*,*,#233,.T.);
62#342=ORIENTED_EDGE('',*,*,#231,.F.);
63#343=EDGE_LOOP('',(#340,#341,#342));
64#344=FACE_OUTER_BOUND('',#343,.T.);
65#345=AXIS2_PLACEMENT_3D('',#101,#208,#202);
66#346=PLANE('east_plane',#345);
67#350=ADVANCED_FACE('east',(#344),#346,.T.);
68/* North face (triangle 2,3,4) */
69#360=ORIENTED_EDGE('',*,*,#225,.T.);
70#361=ORIENTED_EDGE('',*,*,#235,.T.);
71#362=ORIENTED_EDGE('',*,*,#233,.F.);
72#363=EDGE_LOOP('',(#360,#361,#362));
73#364=FACE_OUTER_BOUND('',#363,.T.);
74#365=AXIS2_PLACEMENT_3D('',#102,#208,#202);
75#366=PLANE('north_plane',#365);
76#370=ADVANCED_FACE('north',(#364),#366,.T.);
77/* West face (triangle 3,0,4) - FLIPPED for defect */
78#380=ORIENTED_EDGE('',*,*,#227,.T.);
79#381=ORIENTED_EDGE('',*,*,#235,.F.);
80#382=ORIENTED_EDGE('',*,*,#229,.T.);
81#383=EDGE_LOOP('',(#380,#381,#382));
82#384=FACE_OUTER_BOUND('',#383,.T.);
83#385=AXIS2_PLACEMENT_3D('',#103,#210,#202);
84#386=PLANE('west_plane',#385);
85#390=ADVANCED_FACE('west',(#384),#386,.F.);
86#400=OPEN_SHELL('pyramid_flipped_apex',(#310,#330,#350,#370,#390));
87#9000=PRODUCT_CONTEXT('',#1,'mechanical');
88#9001=PRODUCT('Tsh162','Tsh162','',(#9000));
89#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
90#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
91#9004=PRODUCT_DEFINITION('','',#9002,#9003);
92#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
93#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
94#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
95#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
96#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
97#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
98#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#400));
99#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
100#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
101ENDSEC;
102END-ISO-10303-21;