step-examples/12-3a-shells/Tsh116.stp
Sources
- synthesized — no external source cited
Description
lone inverted face in 6-face cube
Reproducer recipe
Expected kernel behavior
Five of the cube's six ADVANCED_FACEs carry same_sense=.T. and the top face (z=10) carries same_sense=.F. while its EDGE_LOOP is also wired with every ORIENTED_EDGE reversed relative to the other faces' convention — a single face whose orientation disagrees with its five neighbours across shared edges. Detect the minority face by checking, for each shared edge, that the two faces using it traverse it in opposite directions; the top face fails that test against all four of its neighbours, so flip it alone rather than the other five.
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/* Tsh116 - 6-face cube with one inverted face 3 * Defect: face[3] has orientation reversed; FixFaceOrientation must detect 4 * and flip the lone inverted face among 5 correctly oriented ones. */ 5HEADER; 6FILE_DESCRIPTION(('Tsh116 - lone inverted face in cube','wave 20'),'2;1'); 7FILE_NAME('Tsh116.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/* 6 face cube; face 3 (z=10 top) inverted */ 15 16/* Bottom face (z=0) points down */ 17#10=CARTESIAN_POINT('',(0,0,0)); 18#11=CARTESIAN_POINT('',(10.0,0,0)); 19#12=CARTESIAN_POINT('',(10.0,10.0,0)); 20#13=CARTESIAN_POINT('',(0,10.0,0)); 21 22/* Top face (z=10) points up */ 23#14=CARTESIAN_POINT('',(0,0,10.0)); 24#15=CARTESIAN_POINT('',(10.0,0,10.0)); 25#16=CARTESIAN_POINT('',(10.0,10.0,10.0)); 26#17=CARTESIAN_POINT('',(0,10.0,10.0)); 27 28/* Vertices */ 29#20=VERTEX_POINT('',#10); 30#21=VERTEX_POINT('',#11); 31#22=VERTEX_POINT('',#12); 32#23=VERTEX_POINT('',#13); 33#24=VERTEX_POINT('',#14); 34#25=VERTEX_POINT('',#15); 35#26=VERTEX_POINT('',#16); 36#27=VERTEX_POINT('',#17); 37 38/* Planes */ 39#30=AXIS2_PLACEMENT_3D('z0_plane',#10,DIRECTION('',(0,0,-1)),DIRECTION('',(1,0,0))); 40#31=PLANE('',#30); 41#32=AXIS2_PLACEMENT_3D('z10_plane',#14,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0))); 42#33=PLANE('',#32); 43#34=AXIS2_PLACEMENT_3D('x0_plane',#10,DIRECTION('',(-1,0,0)),DIRECTION('',(0,1,0))); 44#35=PLANE('',#34); 45#36=AXIS2_PLACEMENT_3D('x10_plane',#11,DIRECTION('',(1,0,0)),DIRECTION('',(0,1,0))); 46#37=PLANE('',#36); 47#38=AXIS2_PLACEMENT_3D('y0_plane',#10,DIRECTION('',(0,-1,0)),DIRECTION('',(1,0,0))); 48#39=PLANE('',#38); 49#40=AXIS2_PLACEMENT_3D('y10_plane',#12,DIRECTION('',(0,1,0)),DIRECTION('',(1,0,0))); 50#41=PLANE('',#40); 51 52/* Bottom face edges */ 53#50=LINE('',#10,VECTOR('',(1,0,0),10.0)); 54#51=EDGE_CURVE('bot_e1',#20,#21,#50,.T.); 55#52=LINE('',#11,VECTOR('',(0,1,0),10.0)); 56#53=EDGE_CURVE('bot_e2',#21,#22,#52,.T.); 57#54=LINE('',#12,VECTOR('',(-1,0,0),10.0)); 58#55=EDGE_CURVE('bot_e3',#22,#23,#54,.T.); 59#56=LINE('',#13,VECTOR('',(0,-1,0),10.0)); 60#57=EDGE_CURVE('bot_e4',#23,#20,#56,.T.); 61 62/* Top face edges */ 63#58=LINE('',#14,VECTOR('',(1,0,0),10.0)); 64#59=EDGE_CURVE('top_e1',#24,#25,#58,.T.); 65#60=LINE('',#15,VECTOR('',(0,1,0),10.0)); 66#61=EDGE_CURVE('top_e2',#25,#26,#60,.T.); 67#62=LINE('',#16,VECTOR('',(-1,0,0),10.0)); 68#63=EDGE_CURVE('top_e3',#26,#27,#62,.T.); 69#64=LINE('',#17,VECTOR('',(0,-1,0),10.0)); 70#65=EDGE_CURVE('top_e4',#27,#24,#64,.T.); 71 72/* Vertical edges */ 73#66=LINE('',#10,VECTOR('',(0,0,1),10.0)); 74#67=EDGE_CURVE('vert_e1',#20,#24,#66,.T.); 75#68=LINE('',#11,VECTOR('',(0,0,1),10.0)); 76#69=EDGE_CURVE('vert_e2',#21,#25,#68,.T.); 77#70=LINE('',#12,VECTOR('',(0,0,1),10.0)); 78#71=EDGE_CURVE('vert_e3',#22,#26,#70,.T.); 79#72=LINE('',#13,VECTOR('',(0,0,1),10.0)); 80#73=EDGE_CURVE('vert_e4',#23,#27,#72,.T.); 81 82/* Bottom face edge loop */ 83#80=ORIENTED_EDGE('',*,*,#51,.T.); 84#81=ORIENTED_EDGE('',*,*,#53,.T.); 85#82=ORIENTED_EDGE('',*,*,#55,.T.); 86#83=ORIENTED_EDGE('',*,*,#57,.T.); 87#84=EDGE_LOOP('bot_loop',(#80,#81,#82,#83)); 88 89/* Top face edge loop (INVERTED) */ 90#85=ORIENTED_EDGE('',*,*,#59,.F.); 91#86=ORIENTED_EDGE('',*,*,#61,.F.); 92#87=ORIENTED_EDGE('',*,*,#63,.F.); 93#88=ORIENTED_EDGE('',*,*,#65,.F.); 94#89=EDGE_LOOP('top_loop_inv',(#85,#86,#87,#88)); 95 96/* X=0 face edge loop */ 97#90=ORIENTED_EDGE('',*,*,#57,.F.); 98#91=ORIENTED_EDGE('',*,*,#67,.T.); 99#92=ORIENTED_EDGE('',*,*,#65,.T.); 100#93=ORIENTED_EDGE('',*,*,#73,.F.); 101#94=EDGE_LOOP('x0_loop',(#90,#91,#92,#93)); 102 103/* X=10 face edge loop */ 104#95=ORIENTED_EDGE('',*,*,#51,.F.); 105#96=ORIENTED_EDGE('',*,*,#69,.T.); 106#97=ORIENTED_EDGE('',*,*,#59,.T.); 107#98=ORIENTED_EDGE('',*,*,#71,.F.); 108#99=EDGE_LOOP('x10_loop',(#95,#96,#97,#98)); 109 110/* Y=0 face edge loop */ 111#100=ORIENTED_EDGE('',*,*,#53,.F.); 112#101=ORIENTED_EDGE('',*,*,#71,.T.); 113#102=ORIENTED_EDGE('',*,*,#61,.T.); 114#103=ORIENTED_EDGE('',*,*,#69,.F.); 115#104=EDGE_LOOP('y0_loop',(#100,#101,#102,#103)); 116 117/* Y=10 face edge loop */ 118#105=ORIENTED_EDGE('',*,*,#55,.F.); 119#106=ORIENTED_EDGE('',*,*,#73,.T.); 120#107=ORIENTED_EDGE('',*,*,#63,.T.); 121#108=ORIENTED_EDGE('',*,*,#67,.F.); 122#109=EDGE_LOOP('y10_loop',(#105,#106,#107,#108)); 123 124/* Face bounds */ 125#110=FACE_OUTER_BOUND('',#84,.T.); 126#111=FACE_OUTER_BOUND('',#89,.T.); 127#112=FACE_OUTER_BOUND('',#94,.T.); 128#113=FACE_OUTER_BOUND('',#99,.T.); 129#114=FACE_OUTER_BOUND('',#104,.T.); 130#115=FACE_OUTER_BOUND('',#109,.T.); 131 132/* Faces - face 3 (top) has inverted orientation */ 133#120=ADVANCED_FACE('f_bot',(#110),#31,.T.); 134#121=ADVANCED_FACE('f_top_inv',(#111),#33,.F.); 135#122=ADVANCED_FACE('f_x0',(#112),#35,.T.); 136#123=ADVANCED_FACE('f_x10',(#113),#37,.T.); 137#124=ADVANCED_FACE('f_y0',(#114),#39,.T.); 138#125=ADVANCED_FACE('f_y10',(#115),#41,.T.); 139 140/* Closed shell */ 141#130=CLOSED_SHELL('cube_inv',(#120,#121,#122,#123,#124,#125)); 142 143/* Mandatory PRODUCT chain */ 144#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 145#9001=PRODUCT('Tsh116','Tsh116','',(#9000)); 146#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 147#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 148#9004=PRODUCT_DEFINITION('','',#9002,#9003); 149#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 150#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 151#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 152#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 153#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 154#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 155#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#130)); 156#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 157#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 158ENDSEC; 159END-ISO-10303-21;