Tsh078 — Möbius-strip orientation contradiction

§12.3a (shells)

topology

Sources

Description

Single-face shell with edge-loop twist creates orientation propagation contradiction. Normal direction reverses as loop is traversed, exposing intrinsic non-orientability. FixFaceOrientation fails to detect and crashes.

Reproducer recipe

Create an OPEN_SHELL with one ADVANCED_FACE whose edge loop has 4 edges forming a topological twist (edge sequence creates orientation flip around loop). Call ShapeFix_Shell.FixFaceOrientation(). Propagation detects contradictory orientation and crashes.

Expected kernel behavior

Kernel must detect non-orientable surface topology and either reject or flag for manual repair.

Expected validation

occt=unknown/unknown gmsh=unknown ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh078 - ShapeFix_Shell Möbius-strip detection in FixFaceOrientation
3 * Defect: Shell with single face where orientation propagation produces
4 * contradictory normals as the face is traversed. FixFaceOrientation
5 * fails to detect intrinsic non-orientability (one-sided surface) and
6 * crashes during propagation. Source: ShapeFix_Shell.FixFaceOrientation
7 * line 1428 (FixFaceOrientation_at1428). */
8HEADER;
9FILE_DESCRIPTION(('Tsh078 test case','Möbius-strip orientation contradiction'),'2;1');
10FILE_NAME('Tsh078.stp','2026-06-16T00:00:00',('auto-generated'),(''),'auto-generated','','');
11FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
12ENDSEC;
13DATA;
14#1=APPLICATION_CONTEXT('automotive_design');
15#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
16/* Möbius strip: single face with 4 edges; traversal creates orientation contradiction */
17#100=CARTESIAN_POINT('',(0.0,0.0,0.0));
18#101=CARTESIAN_POINT('',(2.0,0.0,0.0));
19#102=CARTESIAN_POINT('',(2.0,1.0,0.0));
20#103=CARTESIAN_POINT('',(0.0,1.0,0.0));
21#104=CARTESIAN_POINT('',(0.0,1.0,0.5));
22#105=CARTESIAN_POINT('',(2.0,1.0,0.5));
23#110=VERTEX_POINT('',#100); #111=VERTEX_POINT('',#101);
24#112=VERTEX_POINT('',#102); #113=VERTEX_POINT('',#103);
25#114=VERTEX_POINT('',#104); #115=VERTEX_POINT('',#105);
26/* Surface is approximately a SURFACE_OF_REVOLUTION (Möbius topology) */
27#200=DIRECTION('',(0.0,1.0,0.0)); #201=DIRECTION('',(1.0,0.0,0.0));
28#210=AXIS2_PLACEMENT_3D('',#100,#200,#201); #220=PLANE('',#210);
29/* Four edges forming a strip; the twist creates non-orientability */
30#300=DIRECTION('',(1.0,0.0,0.0)); #301=VECTOR('',#300,2.0);
31#310=LINE('',#100,#301); #311=EDGE_CURVE('e0',#110,#111,#310,.T.);
32#312=DIRECTION('',(0.0,0.0,1.0)); #313=VECTOR('',#312,0.5);
33#320=LINE('',#101,#313); #321=EDGE_CURVE('e1',#111,#115,#320,.T.);
34#322=DIRECTION('',(-1.0,0.0,0.0)); #323=VECTOR('',#322,2.0);
35#330=LINE('',#105,#323); #331=EDGE_CURVE('e2_twist',#115,#114,#330,.T.);
36#332=DIRECTION('',(0.0,0.0,-1.0)); #333=VECTOR('',#332,0.5);
37#340=LINE('',#104,#333); #341=EDGE_CURVE('e3',#114,#113,#340,.T.);
38/* Defect: Edge loop has twist; traversing from #110->...->back to #113
39   produces orientation contradiction for a non-orientable surface */
40#400=ORIENTED_EDGE('',*,*,#311,.T.);
41#401=ORIENTED_EDGE('',*,*,#321,.T.);
42#402=ORIENTED_EDGE('',*,*,#331,.T.);
43#403=ORIENTED_EDGE('',*,*,#341,.T.);
44#404=EDGE_LOOP('',(#400,#401,#402,#403)); #405=FACE_OUTER_BOUND('',#404,.T.);
45#406=ADVANCED_FACE('mobius_face',(#405),#220,.T.);
46#500=OPEN_SHELL('mobius_shell',(#406));
47/* PRODUCT chain */
48#9000=PRODUCT_CONTEXT('',#1,'mechanical');
49#9001=PRODUCT('Tsh078','Tsh078','',(#9000));
50#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
51#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
52#9004=PRODUCT_DEFINITION('','',#9002,#9003);
53#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
54#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
55#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
56#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
57#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
58#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
59#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#500));
60#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
61#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
62ENDSEC;
63END-ISO-10303-21;