Tsh085 — ShapeFix_Shell.FixFaceOrientation transition-point

§12.3a

topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation transition-point

Reproducer recipe

Expected kernel behavior

The two coplanar quads share edge #16, which one face uses forward and the other reversed — but the second face also carries `same_sense=.F.`, so once loop sense is composed with face sense both faces run the shared edge the same way and their outward sides point into opposite half-spaces. Derive consistency from that composed traversal (in a consistent shell every interior edge is used once forward and once reversed by its two faces), flip the minority face, and re-verify. If no set of flips makes every shared edge oppositely traversed, emit separate consistently oriented shells and report that the input could not be made single-shell.

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/* Tsh085: OPEN_SHELL with 2 ADVANCED_FACEs; one EDGE_CURVE IS shared between both faces at x=1; Face A (x=0..1) IS wired same_sense=True (normal +Z); Face B (x=1..2) IS wired same_sense=False (normal -Z, i.e. inward); opposing same_sense flags at shared seam IS the mechanism; anti-parallel normals at transition point IS directly in ADVANCED_FACE topology; ShapeFix_Shell.FixFaceOrientation at line 1428 traverses seam; cannot distinguish which side is correctly oriented; fix: compare face normals at shared edge before choosing orientation branch; emit E_NORMAL_DISCONTINUITY at transition edges */
3HEADER;
4FILE_DESCRIPTION(('Tsh085'),'2;1');
5FILE_NAME('Tsh085.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=CARTESIAN_POINT('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,0.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,1.0,0.0));
14#5=CARTESIAN_POINT('',(1.0,1.0,0.0));
15#6=CARTESIAN_POINT('',(2.0,1.0,0.0));
16#7=VERTEX_POINT('',#1);
17#8=VERTEX_POINT('',#2);
18#9=VERTEX_POINT('',#3);
19#10=VERTEX_POINT('',#4);
20#11=VERTEX_POINT('',#5);
21#12=VERTEX_POINT('',#6);
22#13=DIRECTION('',(0.0,1.0,0.0));
23#14=VECTOR('',#13,1.0);
24#15=LINE('',#2,#14);
25#16=EDGE_CURVE('',#8,#11,#15,.T.);
26#17=DIRECTION('',(0.0,0.0,1.0));
27#18=DIRECTION('',(1.0,0.0,0.0));
28#19=AXIS2_PLACEMENT_3D('',#1,#17,#18);
29#20=PLANE('',#19);
30#21=DIRECTION('',(1.0,0.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#1,#22);
33#24=EDGE_CURVE('',#7,#8,#23,.T.);
34#25=DIRECTION('',(-1.0,0.0,0.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#5,#26);
37#28=EDGE_CURVE('',#11,#10,#27,.T.);
38#29=DIRECTION('',(0.0,-1.0,0.0));
39#30=VECTOR('',#29,1.0);
40#31=LINE('',#4,#30);
41#32=EDGE_CURVE('',#10,#7,#31,.T.);
42#33=ORIENTED_EDGE('',$,$,#24,.T.);
43#34=ORIENTED_EDGE('',$,$,#16,.T.);
44#35=ORIENTED_EDGE('',$,$,#28,.T.);
45#36=ORIENTED_EDGE('',$,$,#32,.T.);
46#37=EDGE_LOOP('',(#33,#34,#35,#36));
47#38=FACE_OUTER_BOUND('',#37,.T.);
48#39=ADVANCED_FACE('',(#38),#20,.T.);
49#40=DIRECTION('',(0.0,0.0,1.0));
50#41=DIRECTION('',(1.0,0.0,0.0));
51#42=AXIS2_PLACEMENT_3D('',#2,#40,#41);
52#43=PLANE('',#42);
53#44=DIRECTION('',(1.0,0.0,0.0));
54#45=VECTOR('',#44,1.0);
55#46=LINE('',#2,#45);
56#47=EDGE_CURVE('',#8,#9,#46,.T.);
57#48=DIRECTION('',(0.0,1.0,0.0));
58#49=VECTOR('',#48,1.0);
59#50=LINE('',#3,#49);
60#51=EDGE_CURVE('',#9,#12,#50,.T.);
61#52=DIRECTION('',(-1.0,0.0,0.0));
62#53=VECTOR('',#52,1.0);
63#54=LINE('',#6,#53);
64#55=EDGE_CURVE('',#12,#11,#54,.T.);
65#56=ORIENTED_EDGE('',$,$,#47,.T.);
66#57=ORIENTED_EDGE('',$,$,#51,.T.);
67#58=ORIENTED_EDGE('',$,$,#55,.T.);
68#59=ORIENTED_EDGE('',$,$,#16,.F.);
69#60=EDGE_LOOP('',(#56,#57,#58,#59));
70#61=FACE_OUTER_BOUND('',#60,.T.);
71#62=ADVANCED_FACE('',(#61),#43,.F.);
72#63=OPEN_SHELL('',(#39,#62));
73#64=SHELL_BASED_SURFACE_MODEL('',(#63));
74#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
75#9051=PRODUCT('Tsh085','Tsh085','',(#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;