step-examples/12-3a-shells/Tsh107.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Shell.Perform double-orient oscillation
Reproducer recipe
Expected kernel behavior
Three faces form a corner and share edges pairwise (Face1-Face2, Face2-Face3, Face1-Face3), and Face3 alone carries same_sense=.F.. Propagating a flip decision face-by-face from a mismatched shared edge is not enough on its own: derive the target orientation for every face from a single fixed-point pass over all shared-edge sense comparisons and apply it once, rather than re-evaluating and re-flipping faces repeatedly as their neighbours change — an implementation that keeps re-checking already-visited faces against newly flipped neighbours can flip Face3 back and forth without ever converging.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(17) ifc=schema_n/a
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh107: OPEN_SHELL with 3 ADVANCED_FACEs forming corner â IS the shell mechanism; Face1 (bottom z=0) and Face2 (back y=1) share EDGE_CURVE e12 â wired into both EDGE_LOOPs; Face2 (back y=1) and Face3 (right x=1) share EDGE_CURVE e23 â wired into both EDGE_LOOPs; Face1 (bottom z=0) and Face3 (right x=1) share EDGE_CURVE e13 â wired into both EDGE_LOOPs; Face3 ADVANCED_FACE has same_sense=False â IS the orientation inconsistency mechanism; FixFaceOrientation propagates from Face1 via shared edges to Face2 then Face3; same_sense=False on Face3 triggers flip on first pass â invariant not achieved; recheck sees flipped Face3 as inconsistent and flips back â IS the oscillation; oscillation loop IS caused by same_sense mismatch wired into Face3 topology; fix: detect same_sense=False before propagation; stabilise flip decision; emit E_FACE_ORIENTATION_OSCILLATION when flip-then-recheck cycles detected */ 3HEADER; 4FILE_DESCRIPTION(('Tsh107'),'2;1'); 5FILE_NAME('Tsh107.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('',(1.0,0.0,1.0)); 15#6=CARTESIAN_POINT('',(1.0,1.0,1.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('',(-1.0,0.0,0.0)); 23#14=VECTOR('',#13,1.0); 24#15=LINE('',#3,#14); 25#16=EDGE_CURVE('',#9,#10,#15,.T.); 26#17=DIRECTION('',(0.0,0.0,1.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#3,#18); 29#20=EDGE_CURVE('',#9,#12,#19,.T.); 30#21=DIRECTION('',(0.0,1.0,0.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#2,#22); 33#24=EDGE_CURVE('',#8,#9,#23,.T.); 34#25=DIRECTION('',(1.0,0.0,0.0)); 35#26=VECTOR('',#25,1.0); 36#27=LINE('',#1,#26); 37#28=EDGE_CURVE('',#7,#8,#27,.T.); 38#29=ORIENTED_EDGE('',$,$,#16,.T.); 39#30=DIRECTION('',(0.0,-1.0,0.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#4,#31); 42#33=EDGE_CURVE('',#10,#7,#32,.T.); 43#34=ORIENTED_EDGE('',$,$,#28,.T.); 44#35=ORIENTED_EDGE('',$,$,#24,.T.); 45#36=ORIENTED_EDGE('',$,$,#33,.T.); 46#37=EDGE_LOOP('',(#34,#35,#29,#36)); 47#38=DIRECTION('',(0.0,0.0,1.0)); 48#39=DIRECTION('',(1.0,0.0,0.0)); 49#40=AXIS2_PLACEMENT_3D('',#1,#38,#39); 50#41=PLANE('',#40); 51#42=FACE_OUTER_BOUND('',#37,.T.); 52#43=ADVANCED_FACE('',(#42),#41,.T.); 53#44=DIRECTION('',(-1.0,0.0,-1.0)); 54#45=VECTOR('',#44,1.0); 55#46=LINE('',#6,#45); 56#47=EDGE_CURVE('',#12,#10,#46,.T.); 57#48=ORIENTED_EDGE('',$,$,#16,.F.); 58#49=ORIENTED_EDGE('',$,$,#20,.T.); 59#50=ORIENTED_EDGE('',$,$,#47,.T.); 60#51=EDGE_LOOP('',(#48,#49,#50)); 61#52=DIRECTION('',(0.0,1.0,0.0)); 62#53=DIRECTION('',(1.0,0.0,0.0)); 63#54=AXIS2_PLACEMENT_3D('',#4,#52,#53); 64#55=PLANE('',#54); 65#56=FACE_OUTER_BOUND('',#51,.T.); 66#57=ADVANCED_FACE('',(#56),#55,.T.); 67#58=DIRECTION('',(0.0,-1.0,0.0)); 68#59=VECTOR('',#58,1.0); 69#60=LINE('',#5,#59); 70#61=EDGE_CURVE('',#11,#8,#60,.T.); 71#62=DIRECTION('',(0.0,0.0,1.0)); 72#63=VECTOR('',#62,1.0); 73#64=LINE('',#2,#63); 74#65=EDGE_CURVE('',#8,#11,#64,.T.); 75#66=DIRECTION('',(0.0,1.0,0.0)); 76#67=VECTOR('',#66,1.0); 77#68=LINE('',#5,#67); 78#69=EDGE_CURVE('',#11,#12,#68,.T.); 79#70=ORIENTED_EDGE('',$,$,#24,.F.); 80#71=ORIENTED_EDGE('',$,$,#65,.T.); 81#72=ORIENTED_EDGE('',$,$,#69,.T.); 82#73=ORIENTED_EDGE('',$,$,#20,.F.); 83#74=EDGE_LOOP('',(#70,#71,#72,#73)); 84#75=DIRECTION('',(1.0,0.0,0.0)); 85#76=DIRECTION('',(0.0,1.0,0.0)); 86#77=AXIS2_PLACEMENT_3D('',#2,#75,#76); 87#78=PLANE('',#77); 88#79=FACE_OUTER_BOUND('',#74,.T.); 89#80=ADVANCED_FACE('',(#79),#78,.F.); 90#81=OPEN_SHELL('',(#43,#57,#80)); 91#82=SHELL_BASED_SURFACE_MODEL('',(#81)); 92#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 93#9051=PRODUCT('Tsh107','Tsh107','',(#9050)); 94#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 95#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 96#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 97#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 98#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 99#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 100#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 101#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 102#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 103#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#82),#9060); 104#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 105ENDSEC; 106END-ISO-10303-21;