step-examples/12-3a-shells/Tsh120.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Shell.CheckOrientedShells uniform-orientation wrong direction
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 carry same_sense=.T. — internally consistent with each other — but each PLANE's own AXIS2_PLACEMENT_3D reference direction is authored pointing into the notional solid rather than out of it (bottom face normal +Z instead of -Z; front face normal +Y instead of -Y), so the pair is self-consistent yet globally inside-out. A kernel must never crash on this input, and a same_sense agreement check between neighbours is not sufficient on its own to certify orientation — it must also be checked against an independent signal such as a computed enclosed-volume sign or a centroid-relative normal test.
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
Byte assertions
contains(b'ADVANCED_FACE')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh120 - ShapeAnalysis_Shell.CheckOrientedShells uniform-orientation wrong direction 3 * Defect: all faces have consistent orientation flag but their normals all 4 * point inward; CheckOrientedShells's consistency test passes but solid is inside-out */ 5HEADER; 6FILE_DESCRIPTION(('Tsh120 - inverted normals with consistent orientation','wave 25'),'2;1'); 7FILE_NAME('Tsh120.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 rectangular faces sharing edge; both with orientation=TRUE but normals inverted */ 15/* Face 1: (0,0,0)-(10,0,0)-(10,10,0)-(0,10,0) normal points DOWN instead of UP */ 16/* Face 2: (0,0,0)-(10,0,0)-(10,0,10)-(0,0,10) normal points INWARD instead of OUTWARD */ 17 18#10=CARTESIAN_POINT('',(0,0,0)); 19#11=CARTESIAN_POINT('',(10.0,0,0)); 20#12=CARTESIAN_POINT('',(10.0,10.0,0)); 21#13=CARTESIAN_POINT('',(0,10.0,0)); 22#14=CARTESIAN_POINT('',(10.0,0,10.0)); 23#15=CARTESIAN_POINT('',(0,0,10.0)); 24 25#20=VERTEX_POINT('',#10); 26#21=VERTEX_POINT('',#11); 27#22=VERTEX_POINT('',#12); 28#23=VERTEX_POINT('',#13); 29#24=VERTEX_POINT('',#14); 30#25=VERTEX_POINT('',#15); 31 32/* Planes with INVERTED normal directions */ 33/* Face 1: should point UP (0,0,1) but defined with DOWN (0,0,-1) */ 34#30=AXIS2_PLACEMENT_3D('inverted_z_plane',#10,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0))); 35#31=PLANE('',#30); 36/* Face 2: should point -Y (0,-1,0) but defined with +Y (0,1,0) */ 37#32=AXIS2_PLACEMENT_3D('inverted_y_plane',#10,DIRECTION('',(0,1,0)),DIRECTION('',(1,0,0))); 38#33=PLANE('',#32); 39 40/* Face 1 edges */ 41#50=LINE('',#10,VECTOR('',(1,0,0),10.0)); 42#51=EDGE_CURVE('f1_e1',#20,#21,#50,.T.); 43#52=LINE('',#11,VECTOR('',(0,1,0),10.0)); 44#53=EDGE_CURVE('f1_e2',#21,#22,#52,.T.); 45#54=LINE('',#12,VECTOR('',(-1,0,0),10.0)); 46#55=EDGE_CURVE('f1_e3',#22,#23,#54,.T.); 47#56=LINE('',#13,VECTOR('',(0,-1,0),10.0)); 48#57=EDGE_CURVE('f1_e4',#23,#20,#56,.T.); 49 50/* Face 2 edges (shares #51 with Face 1) */ 51#58=LINE('',#11,VECTOR('',(0,0,1),10.0)); 52#59=EDGE_CURVE('f2_vert1',#21,#24,#58,.T.); 53#60=LINE('',#14,VECTOR('',(-1,0,0),10.0)); 54#61=EDGE_CURVE('f2_e2',#24,#25,#60,.T.); 55#62=LINE('',#15,VECTOR('',(0,0,-1),10.0)); 56#63=EDGE_CURVE('f2_e3',#25,#20,#62,.T.); 57 58/* Face 1 edge loop */ 59#80=ORIENTED_EDGE('',*,*,#51,.T.); 60#81=ORIENTED_EDGE('',*,*,#53,.T.); 61#82=ORIENTED_EDGE('',*,*,#55,.T.); 62#83=ORIENTED_EDGE('',*,*,#57,.T.); 63#84=EDGE_LOOP('f1_loop',(#80,#81,#82,#83)); 64 65/* Face 2 edge loop */ 66#85=ORIENTED_EDGE('',*,*,#51,.F.); 67#86=ORIENTED_EDGE('',*,*,#59,.T.); 68#87=ORIENTED_EDGE('',*,*,#61,.T.); 69#88=ORIENTED_EDGE('',*,*,#63,.T.); 70#89=EDGE_LOOP('f2_loop',(#85,#86,#87,#88)); 71 72/* Face bounds */ 73#100=FACE_OUTER_BOUND('',#84,.T.); 74#101=FACE_OUTER_BOUND('',#89,.T.); 75 76/* Faces both with .T. orientation flag (consistent) but normals inverted */ 77#110=ADVANCED_FACE('f1_inverted_normal',(#100),#31,.T.); 78#111=ADVANCED_FACE('f2_inverted_normal',(#101),#33,.T.); 79 80/* Shell with consistently inverted normals */ 81#130=OPEN_SHELL('inverted_shell',(#110,#111)); 82 83/* Mandatory PRODUCT chain */ 84#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 85#9001=PRODUCT('Tsh120','Tsh120','',(#9000)); 86#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 87#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 88#9004=PRODUCT_DEFINITION('','',#9002,#9003); 89#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 90#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 91#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 92#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 93#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 94#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 95#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#130)); 96#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 97#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 98ENDSEC; 99END-ISO-10303-21;