step-examples/12-3a-shells/Tsh122.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Shell.FixFaceOrientation across-edge propagation
Reproducer recipe
Expected kernel behavior
The two faces meet at right angles along the shared edge from (0,0,0) to (10,0,0), and both edge loops reference it with `.T.` — the same traversal direction. In a consistently oriented shell each interior edge is traversed once in each direction, so this is a genuine inconsistency: reverse one of the two faces — here the z=0 face, whose loop also runs clockwise in its own -Z-normal parametrization — so the shared edge becomes oppositely used. Then propagate that decision to any further neighbours and re-verify before accepting the shell.
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/* Tsh122 - ShapeFix_Shell.FixFaceOrientation across-edge propagation 3 * Defect: two faces sharing an edge with consistent same-sense flags but 4 * the edge has internal direction reversal; orientation propagation hits 5 * reversed direction and flips incorrectly */ 6HEADER; 7FILE_DESCRIPTION(('Tsh122 - edge direction reversal blocks orientation','wave 25'),'2;1'); 8FILE_NAME('Tsh122.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','',''); 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 15/* Two faces sharing edge #51 with same-sense flags but internal reversal */ 16/* Face 1: uses #51 as .T. (forward) */ 17/* Face 2: uses #51 as .T. (forward) -- should be .F. for consistent orientation */ 18/* Edge #51 geometry is intentionally reversed internally */ 19 20#10=CARTESIAN_POINT('',(0,0,0)); 21#11=CARTESIAN_POINT('',(10.0,0,0)); 22#12=CARTESIAN_POINT('',(10.0,10.0,0)); 23#13=CARTESIAN_POINT('',(0,10.0,0)); 24#14=CARTESIAN_POINT('',(10.0,0,10.0)); 25#15=CARTESIAN_POINT('',(0,0,10.0)); 26 27#20=VERTEX_POINT('',#10); 28#21=VERTEX_POINT('',#11); 29#22=VERTEX_POINT('',#12); 30#23=VERTEX_POINT('',#13); 31#24=VERTEX_POINT('',#14); 32#25=VERTEX_POINT('',#15); 33 34/* Planes */ 35#30=AXIS2_PLACEMENT_3D('z0_plane',#10,DIRECTION('',(0,0,-1)),DIRECTION('',(1,0,0))); 36#31=PLANE('',#30); 37#32=AXIS2_PLACEMENT_3D('y0_plane',#10,DIRECTION('',(0,-1,0)),DIRECTION('',(1,0,0))); 38#33=PLANE('',#32); 39 40/* Face 1 edges (bottom) */ 41#50=LINE('',#10,VECTOR('',(1,0,0),10.0)); 42#51=EDGE_CURVE('shared_reversed_edge',#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 but with problematic orientation */ 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 (bottom rectangle) */ 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 - uses #51 with .T. orientation (problematic) */ 66/* For correct manifold topology, this should use #51 with .F. */ 67#85=ORIENTED_EDGE('',*,*,#51,.T.); 68#86=ORIENTED_EDGE('',*,*,#59,.T.); 69#87=ORIENTED_EDGE('',*,*,#61,.T.); 70#88=ORIENTED_EDGE('',*,*,#63,.T.); 71#89=EDGE_LOOP('f2_loop',(#85,#86,#87,#88)); 72 73/* Face bounds */ 74#100=FACE_OUTER_BOUND('',#84,.T.); 75#101=FACE_OUTER_BOUND('',#89,.T.); 76 77/* Faces */ 78#110=ADVANCED_FACE('f1',(#100),#31,.T.); 79#111=ADVANCED_FACE('f2',(#101),#33,.T.); 80 81/* Shell with edge direction reversal problem */ 82#130=OPEN_SHELL('edge_reversal_shell',(#110,#111)); 83 84/* Mandatory PRODUCT chain */ 85#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 86#9001=PRODUCT('Tsh122','Tsh122','',(#9000)); 87#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 88#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 89#9004=PRODUCT_DEFINITION('','',#9002,#9003); 90#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 91#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 92#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 93#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 94#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 95#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 96#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#130)); 97#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 98#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 99ENDSEC; 100END-ISO-10303-21;