step-examples/12-3a-shells/Bo005.stp
Sources
- OCCT BRepCheck_Shell.cxx:797, BRepCheck_Face.cxx:566 (UnorientableShape) (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
A shell's per-face `same_sense` flags and edge orientations form a non-orientable assembly: there is no choice of "outward" that propagates consistently around the shell's edge graph. A Möbius-strip-like topology emerges; when the kernel walks face-to-face across shared edges, the sense flips after a closed loop. Common fixture pattern: an OPEN_SHELL whose ADVANCED_FACEs all sit on the same PLANE while one face's same_sense flag is flipped relative to its neighbour, producing a non-orientable face arrangement. Bug-reporter language: "Möbius shell", "kernel says shape is non-orientable", "cannot determine inside vs outside", "flipped face same_sense breaks orientation".
Reproducer recipe
An OPEN_SHELL of three rectangular `ADVANCED_FACE` entries (often all on the same PLANE) connected end-to-end into a closed loop. The third face's `same_sense=.F.` is set so that, when traversed in the closed loop, the orientation reverses.
Expected kernel behavior
Detect non-orientability via parity-walk of orientation flags; reject the shape, or split the shell into orientable pieces and warn.
Notes
Distinct from Tsh008 (mis-oriented but orientable). The defect here is intrinsic, not an importer mistake. Synonyms: "Möbius shell", "kernel says shape is non-orientable", "cannot determine inside vs outside", "flipped face same_sense breaks orientation", "no consistent normal direction possible".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(21) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
face[0].surface_type == "plane"face[2].surface_type == "plane"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Bo005: OPEN_SHELL with 3 planar ADVANCED_FACEs in closed loop; face[2].same_sense=.F. creates non-orientable (Möbius-like) assembly IS wired into face/edge topology; BRepCheck fires UnorientableShape */ 3HEADER; 4FILE_DESCRIPTION(('Bo005'),'2;1'); 5FILE_NAME('Bo005.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(1.0,1.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,1.0,0.0)); 19#10=CARTESIAN_POINT('',(2.0,0.0,0.0)); 20#11=CARTESIAN_POINT('',(2.0,1.0,0.0)); 21#12=CARTESIAN_POINT('',(3.0,0.0,0.0)); 22#13=CARTESIAN_POINT('',(3.0,1.0,0.0)); 23#14=VERTEX_POINT('',#6); 24#15=VERTEX_POINT('',#7); 25#16=VERTEX_POINT('',#8); 26#17=VERTEX_POINT('',#9); 27#18=VERTEX_POINT('',#10); 28#19=VERTEX_POINT('',#11); 29#20=VERTEX_POINT('',#12); 30#21=VERTEX_POINT('',#13); 31#22=DIRECTION('',(1,0,0.0)); 32#23=VECTOR('',#22,1.0); 33#24=LINE('',#6,#23); 34#25=EDGE_CURVE('',#14,#15,#24,.T.); 35#26=DIRECTION('',(0,1,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#7,#27); 38#29=EDGE_CURVE('',#15,#16,#28,.T.); 39#30=DIRECTION('',(-1,0,0.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#8,#31); 42#33=EDGE_CURVE('',#16,#17,#32,.T.); 43#34=DIRECTION('',(0,-1,0.0)); 44#35=VECTOR('',#34,1.0); 45#36=LINE('',#9,#35); 46#37=EDGE_CURVE('',#17,#14,#36,.T.); 47#38=DIRECTION('',(1,0,0.0)); 48#39=VECTOR('',#38,1.0); 49#40=LINE('',#7,#39); 50#41=EDGE_CURVE('',#15,#18,#40,.T.); 51#42=DIRECTION('',(0,1,0.0)); 52#43=VECTOR('',#42,1.0); 53#44=LINE('',#10,#43); 54#45=EDGE_CURVE('',#18,#19,#44,.T.); 55#46=DIRECTION('',(-1,0,0.0)); 56#47=VECTOR('',#46,1.0); 57#48=LINE('',#11,#47); 58#49=EDGE_CURVE('',#19,#16,#48,.T.); 59#50=DIRECTION('',(1,0,0.0)); 60#51=VECTOR('',#50,1.0); 61#52=LINE('',#10,#51); 62#53=EDGE_CURVE('',#18,#20,#52,.T.); 63#54=DIRECTION('',(0,1,0.0)); 64#55=VECTOR('',#54,1.0); 65#56=LINE('',#12,#55); 66#57=EDGE_CURVE('',#20,#21,#56,.T.); 67#58=DIRECTION('',(-1,0,0.0)); 68#59=VECTOR('',#58,1.0); 69#60=LINE('',#13,#59); 70#61=EDGE_CURVE('',#21,#19,#60,.T.); 71#62=ORIENTED_EDGE('',$,$,#25,.T.); 72#63=ORIENTED_EDGE('',$,$,#29,.T.); 73#64=ORIENTED_EDGE('',$,$,#33,.T.); 74#65=ORIENTED_EDGE('',$,$,#37,.T.); 75#66=EDGE_LOOP('',(#62,#63,#64,#65)); 76#67=ORIENTED_EDGE('',$,$,#41,.T.); 77#68=ORIENTED_EDGE('',$,$,#45,.T.); 78#69=ORIENTED_EDGE('',$,$,#49,.T.); 79#70=ORIENTED_EDGE('',$,$,#29,.F.); 80#71=EDGE_LOOP('',(#67,#68,#69,#70)); 81#72=ORIENTED_EDGE('',$,$,#53,.T.); 82#73=ORIENTED_EDGE('',$,$,#57,.T.); 83#74=ORIENTED_EDGE('',$,$,#61,.T.); 84#75=ORIENTED_EDGE('',$,$,#45,.F.); 85#76=EDGE_LOOP('',(#72,#73,#74,#75)); 86#77=FACE_OUTER_BOUND('',#66,.T.); 87#78=ADVANCED_FACE('',(#77),#5,.T.); 88#79=FACE_OUTER_BOUND('',#71,.T.); 89#80=ADVANCED_FACE('',(#79),#5,.T.); 90#81=FACE_OUTER_BOUND('',#76,.T.); 91#82=ADVANCED_FACE('',(#81),#5,.F.); 92#83=OPEN_SHELL('',(#78,#80,#82)); 93#84=SHELL_BASED_SURFACE_MODEL('',(#83)); 94#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 95#9051=PRODUCT('Bo005','Bo005','',(#9050)); 96#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 97#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 98#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 99#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 100#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 101#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 102#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 103#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 104#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 105#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#84),#9060); 106#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 107ENDSEC; 108END-ISO-10303-21;