step-examples/12-3b-wires/Twi107.stp
Sources
- synthesized — no external source cited
Description
FixReorder Mode-Cascade
Reproducer recipe
Expected kernel behavior
Reorder the loop's 5 edges into head-to-tail sequence before treating it as a bound: as stored, the EDGE_LOOP's 1st edge ends at P1=(10,0,0), but the 2nd edge in the list runs from P2=(10,8,0) to P3=(5,12,0) — a break, since P1≠P2. A valid head-to-tail permutation of these same five edges exists — P0=(0,0,0)→P1=(10,0,0)→P2=(10,8,0)→P3=(5,12,0)→P4=(0,8,0)→P0 — reconstructing a simple, non-self-intersecting pentagon. A kernel must search for and apply that permutation rather than reject the wire merely because its stored order is non-monotonic.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(11) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi107: Single ADVANCED_FACE on a PLANE in a CLOSED_SHELL; outer EDGE_LOOP has 5 edges in wrong topological order: P0=(0,0,0), P1=(10,0,0), P2=(10,8,0), P3=(5,12,0), P4=(0,8,0); correct order E0(P0âP1),E1(P1âP2),E2(P2âP3),E3(P3âP4),E4(P4âP0); stored order E0(P0âP1),E2(P2âP3),E1(P1âP2),E3(P3âP4),E4(P4âP0) â deliberate E2/E1 swap creates connectivity break after E0 (P1â P2); FixReorder attempts to find valid permutation; all permutations fail because the given order creates an irreconcilable gap; FixReorder returns ReorderOK=false; downstream FixSmall, FixConnected, FixSelfIntersection are suppressed per SF_Perform mode-cascade dependency coupling at lines 320, 331, 355 â IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND â ADVANCED_FACE in CLOSED_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi107'),'2;1'); 5FILE_NAME('Twi107.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=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(10.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(10.0,8.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(5.0,12.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,8.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,10.0); 28#19=LINE('',#16,#18); 29#20=EDGE_CURVE('',#7,#9,#19,.T.); 30#21=ORIENTED_EDGE('',$,$,#20,.T.); 31#22=CARTESIAN_POINT('',(10.0,0.0,0.0)); 32#23=DIRECTION('',(0.0,1.0,0.0)); 33#24=VECTOR('',#23,8.0); 34#25=LINE('',#22,#24); 35#26=EDGE_CURVE('',#9,#11,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=CARTESIAN_POINT('',(10.0,8.0,0.0)); 38#29=DIRECTION('',(-0.780868809443,0.624695047554,0.0)); 39#30=VECTOR('',#29,6.40312423743); 40#31=LINE('',#28,#30); 41#32=EDGE_CURVE('',#11,#13,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=CARTESIAN_POINT('',(5.0,12.0,0.0)); 44#35=DIRECTION('',(-0.780868809443,-0.624695047554,0.0)); 45#36=VECTOR('',#35,6.40312423743); 46#37=LINE('',#34,#36); 47#38=EDGE_CURVE('',#13,#15,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#38,.T.); 49#40=CARTESIAN_POINT('',(0.0,8.0,0.0)); 50#41=DIRECTION('',(0.0,-1.0,0.0)); 51#42=VECTOR('',#41,8.0); 52#43=LINE('',#40,#42); 53#44=EDGE_CURVE('',#15,#7,#43,.T.); 54#45=ORIENTED_EDGE('',$,$,#44,.T.); 55#46=EDGE_LOOP('',(#21,#33,#27,#39,#45)); 56#47=FACE_OUTER_BOUND('',#46,.T.); 57#48=ADVANCED_FACE('',(#47),#5,.T.); 58#49=CLOSED_SHELL('',(#48)); 59#50=SHELL_BASED_SURFACE_MODEL('',(#49)); 60#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 61#9051=PRODUCT('Twi107','Twi107','',(#9050)); 62#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 63#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 64#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 65#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 66#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 67#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 68#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 69#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 70#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 71#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#50),#9060); 72#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 73ENDSEC; 74END-ISO-10303-21;