Tsh227 — ShapeFix_Shell.FixFaceOrientation error_faces_mebius_assumption

§12.3a

topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation error_faces_mebius_assumption

Reproducer recipe

Expected kernel behavior

face A (same_sense=.T.) and face B (same_sense=.F.) are two coplanar, adjacent unit squares (z=0) sharing edge e_mid at x=1, referenced with opposite ORIENTED_EDGE sense by each face's loop — an ordinary, resolvable orientation conflict, not a non-orientable (Mobius-like) surface. Before treating a face pair that resists a simple sense-based fix as non-orientable, verify non-orientability directly (for instance, by checking whether consistent orientation is achievable via any assignment, not just the first one tried); two coplanar, ordinarily-oriented squares must not be classified as a Mobius-type case and split into spurious single-face shells.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(15) 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/* Tsh227: OPEN_SHELL with TWO COPLANAR ADJACENT ADVANCED_FACEs sharing one edge IS the error_faces_mebius_assumption trigger; face A IS a unit-square at X=0..1, Y=0..1, Z=0 with same_sense=True — IS the first face; face B IS a unit-square at X=1..2, Y=0..1, Z=0 with same_sense=False — IS the second face with flipped orientation; shared edge IS e_mid from (1,0,0) to (1,1,0) — IS the common topological edge; face A uses e_mid forward (same_sense=True) — IS the A-side orientation; face B uses e_mid reversed (same_sense=False) — IS the B-side conflicting orientation; shared edge orientation conflict prevents FixFaceOrientation from resolving — IS the orientation ambiguity; both faces are placed in aErrFaces — IS the error-face classification; aErrFaces logic applies Mobius-leaf assumption — IS the mis-classification; intrinsic non-orientability is NOT confirmed for two coplanar squares — IS the incorrect assumption; spurious single-face shells created from aErrFaces — IS the erroneous shell decomposition; fix: aErrFaces must verify actual non-orientability before applying Mobius-leaf handling; emit E_ERROR_FACES_MEBIUS_ASSUMPTION when aErrFaces labels orientable face pair as Mobius-leaf */
3HEADER;
4FILE_DESCRIPTION(('Tsh227'),'2;1');
5FILE_NAME('Tsh227.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=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(1.0,0.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(1.0,1.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(0.0,1.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=CARTESIAN_POINT('',(2.0,0.0,0.0));
19#10=VERTEX_POINT('',#9);
20#11=CARTESIAN_POINT('',(2.0,1.0,0.0));
21#12=VERTEX_POINT('',#11);
22#13=DIRECTION('',(0.0,1.0,0.0));
23#14=VECTOR('',#13,1.0);
24#15=LINE('',#3,#14);
25#16=EDGE_CURVE('',#4,#6,#15,.T.);
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#1,#18);
29#20=EDGE_CURVE('',#2,#4,#19,.T.);
30#21=DIRECTION('',(-1.0,0.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#5,#22);
33#24=EDGE_CURVE('',#6,#8,#23,.T.);
34#25=DIRECTION('',(0.0,-1.0,0.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#7,#26);
37#28=EDGE_CURVE('',#8,#2,#27,.T.);
38#29=DIRECTION('',(1.0,0.0,0.0));
39#30=VECTOR('',#29,1.0);
40#31=LINE('',#3,#30);
41#32=EDGE_CURVE('',#4,#10,#31,.T.);
42#33=DIRECTION('',(0.0,1.0,0.0));
43#34=VECTOR('',#33,1.0);
44#35=LINE('',#9,#34);
45#36=EDGE_CURVE('',#10,#12,#35,.T.);
46#37=DIRECTION('',(-1.0,0.0,0.0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#11,#38);
49#40=EDGE_CURVE('',#12,#6,#39,.T.);
50#41=ORIENTED_EDGE('',$,$,#20,.T.);
51#42=ORIENTED_EDGE('',$,$,#16,.T.);
52#43=ORIENTED_EDGE('',$,$,#24,.T.);
53#44=ORIENTED_EDGE('',$,$,#28,.T.);
54#45=EDGE_LOOP('',(#41,#42,#43,#44));
55#46=DIRECTION('',(0.0,0.0,1.0));
56#47=DIRECTION('',(1.0,0.0,0.0));
57#48=AXIS2_PLACEMENT_3D('',#1,#46,#47);
58#49=PLANE('',#48);
59#50=FACE_OUTER_BOUND('',#45,.T.);
60#51=ADVANCED_FACE('',(#50),#49,.T.);
61#52=ORIENTED_EDGE('',$,$,#32,.T.);
62#53=ORIENTED_EDGE('',$,$,#36,.T.);
63#54=ORIENTED_EDGE('',$,$,#40,.T.);
64#55=ORIENTED_EDGE('',$,$,#16,.F.);
65#56=EDGE_LOOP('',(#52,#53,#54,#55));
66#57=DIRECTION('',(0.0,0.0,1.0));
67#58=DIRECTION('',(1.0,0.0,0.0));
68#59=AXIS2_PLACEMENT_3D('',#3,#57,#58);
69#60=PLANE('',#59);
70#61=FACE_OUTER_BOUND('',#56,.T.);
71#62=ADVANCED_FACE('',(#61),#60,.F.);
72#63=OPEN_SHELL('',(#51,#62));
73#64=SHELL_BASED_SURFACE_MODEL('',(#63));
74#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
75#9051=PRODUCT('Tsh227','Tsh227','',(#9050));
76#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
77#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
78#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
79#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
80#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
81#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
82#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
83#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
84#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
85#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#64),#9060);
86#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
87ENDSEC;
88END-ISO-10303-21;