Tsh154 — ShapeFix_Shell.FixFaceOrientation pyramid-with-apex

§12.3a

topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation pyramid-with-apex

Reproducer recipe

Expected kernel behavior

Three of the four faces around the shared apex vertex (0.5,0.5,1) carry same_sense=.T. and one (TriFace2, the left/x=0 side) carries .F. — a single inconsistent face in an apex fan where every face shares an edge with two others through the apex. Resolve orientation for an apex-fan topology by taking a consensus across all faces meeting at the shared apex vertex, not by propagating pairwise between only immediately adjacent faces; adjacency-only propagation can converge without ever comparing the two faces that actually disagree.

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/* Tsh154: FOUR ADVANCED_FACEs (square base + 3 triangular sides) in CLOSED_SHELL — IS the pyramid-with-apex orientation-fan mechanism; Apex vertex at (0.5,0.5,1) IS shared by all three triangular EDGE_LOOPs; TriFace0 (front, y=0 side) IS wired with same_sense=.T. (outward reference); TriFace1 (right, x=1 side) IS wired with same_sense=.T. (outward reference); TriFace2 (left, x=0 side) IS wired with same_sense=.F. — IS the orientation conflict; fan topology at apex IS the mechanism: FixFaceOrientation propagates from TriFace0 through shared apex edges but adjacency-only logic misses TriFace2's flip; fix: detect apex-fan topology; use consensus vote over all fan faces; emit E_FIX_ORIENTATION_APEX_CONFLICT when fan faces disagree at shared apex vertex */
3HEADER;
4FILE_DESCRIPTION(('Tsh154'),'2;1');
5FILE_NAME('Tsh154.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('',(1.0,1.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,1.0,0.0));
14#5=CARTESIAN_POINT('',(0.5,0.5,1.0));
15#6=VERTEX_POINT('',#1);
16#7=VERTEX_POINT('',#2);
17#8=VERTEX_POINT('',#3);
18#9=VERTEX_POINT('',#4);
19#10=VERTEX_POINT('',#5);
20#11=DIRECTION('',(1.0,0.0,0.0));
21#12=VECTOR('',#11,1.0);
22#13=LINE('',#1,#12);
23#14=EDGE_CURVE('',#6,#7,#13,.T.);
24#15=DIRECTION('',(0.0,1.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#2,#16);
27#18=EDGE_CURVE('',#7,#8,#17,.T.);
28#19=DIRECTION('',(-1.0,0.0,0.0));
29#20=VECTOR('',#19,1.0);
30#21=LINE('',#3,#20);
31#22=EDGE_CURVE('',#8,#9,#21,.T.);
32#23=DIRECTION('',(0.0,-1.0,0.0));
33#24=VECTOR('',#23,1.0);
34#25=LINE('',#4,#24);
35#26=EDGE_CURVE('',#9,#6,#25,.T.);
36#27=DIRECTION('',(0.5,0.5,1.0));
37#28=VECTOR('',#27,1.0);
38#29=LINE('',#1,#28);
39#30=EDGE_CURVE('',#6,#10,#29,.T.);
40#31=DIRECTION('',(-0.5,0.5,1.0));
41#32=VECTOR('',#31,1.0);
42#33=LINE('',#2,#32);
43#34=EDGE_CURVE('',#7,#10,#33,.T.);
44#35=DIRECTION('',(-0.5,-0.5,1.0));
45#36=VECTOR('',#35,1.0);
46#37=LINE('',#3,#36);
47#38=EDGE_CURVE('',#8,#10,#37,.T.);
48#39=DIRECTION('',(0.5,-0.5,1.0));
49#40=VECTOR('',#39,1.0);
50#41=LINE('',#4,#40);
51#42=EDGE_CURVE('',#9,#10,#41,.T.);
52#43=DIRECTION('',(0.0,0.0,-1.0));
53#44=DIRECTION('',(1.0,0.0,0.0));
54#45=AXIS2_PLACEMENT_3D('',#1,#43,#44);
55#46=PLANE('',#45);
56#47=ORIENTED_EDGE('',$,$,#14,.F.);
57#48=ORIENTED_EDGE('',$,$,#26,.F.);
58#49=ORIENTED_EDGE('',$,$,#22,.F.);
59#50=ORIENTED_EDGE('',$,$,#18,.F.);
60#51=EDGE_LOOP('',(#47,#48,#49,#50));
61#52=FACE_OUTER_BOUND('',#51,.T.);
62#53=ADVANCED_FACE('',(#52),#46,.T.);
63#54=DIRECTION('',(0.0,-1.0,0.0));
64#55=DIRECTION('',(1.0,0.0,0.0));
65#56=AXIS2_PLACEMENT_3D('',#1,#54,#55);
66#57=PLANE('',#56);
67#58=ORIENTED_EDGE('',$,$,#14,.T.);
68#59=ORIENTED_EDGE('',$,$,#34,.T.);
69#60=ORIENTED_EDGE('',$,$,#30,.F.);
70#61=EDGE_LOOP('',(#58,#59,#60));
71#62=FACE_OUTER_BOUND('',#61,.T.);
72#63=ADVANCED_FACE('',(#62),#57,.T.);
73#64=DIRECTION('',(1.0,0.0,0.0));
74#65=DIRECTION('',(0.0,1.0,0.0));
75#66=AXIS2_PLACEMENT_3D('',#2,#64,#65);
76#67=PLANE('',#66);
77#68=ORIENTED_EDGE('',$,$,#18,.T.);
78#69=ORIENTED_EDGE('',$,$,#38,.T.);
79#70=ORIENTED_EDGE('',$,$,#34,.F.);
80#71=EDGE_LOOP('',(#68,#69,#70));
81#72=FACE_OUTER_BOUND('',#71,.T.);
82#73=ADVANCED_FACE('',(#72),#67,.T.);
83#74=DIRECTION('',(-1.0,0.0,0.0));
84#75=DIRECTION('',(0.0,-1.0,0.0));
85#76=AXIS2_PLACEMENT_3D('',#4,#74,#75);
86#77=PLANE('',#76);
87#78=ORIENTED_EDGE('',$,$,#22,.T.);
88#79=ORIENTED_EDGE('',$,$,#42,.T.);
89#80=ORIENTED_EDGE('',$,$,#38,.F.);
90#81=EDGE_LOOP('',(#78,#79,#80));
91#82=FACE_OUTER_BOUND('',#81,.T.);
92#83=ADVANCED_FACE('',(#82),#77,.F.);
93#84=CLOSED_SHELL('',(#53,#63,#73,#83));
94#85=SHELL_BASED_SURFACE_MODEL('',(#84));
95#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
96#9051=PRODUCT('Tsh154','Tsh154','',(#9050));
97#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
98#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
99#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
100#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
101#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
102#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
103#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
104#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
105#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
106#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#85),#9060);
107#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
108ENDSEC;
109END-ISO-10303-21;