step-examples/12-3b-wires/Twi193.stp
Sources
- synthesized — no external source cited
Description
CheckOrder index-mode-clash
Reproducer recipe
Expected kernel behavior
a four-edge wire straddles the seam of a cylinder, where one edge runs forward along the axis in 3D while running backward in the angular parameter. Order classification must consider both the 3D and the parametric traversal and flag the disagreement. Picking one of the two and reporting it as the order silently accepts a wire whose parametric direction is reversed relative to its geometry.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1face[0].surface_type == "cylinder"face[0].quadric.radius == 1.0edge[1].curve_type == "circle"edge[1].analytic.radius == 1.0edge[3].curve_type == "circle"edge[3].analytic.radius == 1.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi193: Single ADVANCED_FACE on CYLINDRICAL_SURFACE (radius 1, height 4) in CLOSED_SHELL; outer EDGE_LOOP has 4 edges; E0 is the seam lateral at u=2pi: traverses z=4â0 (forward in 3D) but pcurve has u=2pi (seam copy) v going 4â0 (backward relative to canonical u=0 sense) IS the defect; CheckOrder uses theMode3D=true, sees E0 is 'forward' in 3D but misses the reversed pcurve order on the periodic seam â index-mode-clash IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND -> ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi193'),'2;1'); 5FILE_NAME('Twi193.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=CYLINDRICAL_SURFACE('',#4,1.0); 15#6=CARTESIAN_POINT('',(1.0,0.0,4.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(1.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(0.540302305868,0.841470984808,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.540302305868,0.841470984808,4.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(1.0,0.0,4.0)); 24#15=DIRECTION('',(0.0,0.0,-1.0)); 25#16=VECTOR('',#15,4.0); 26#17=LINE('',#14,#16); 27#18=CARTESIAN_POINT('',(6.28318530718,4.0)); 28#19=DIRECTION('',(0.0,-1.0)); 29#20=VECTOR('',#19,4.0); 30#21=LINE('',#18,#20); 31#22=DEFINITIONAL_REPRESENTATION('',(#21),#*); 32#23=PCURVE('',#5,#22); 33#24=SURFACE_CURVE('',#17,(#23),.PCURVE_S1.); 34#25=EDGE_CURVE('',#7,#9,#24,.T.); 35#26=ORIENTED_EDGE('',*,*,#25,.T.); 36#27=CARTESIAN_POINT('',(0.0,0.0,0.0)); 37#28=DIRECTION('',(0.0,0.0,1.0)); 38#29=DIRECTION('',(1.0,0.0,0.0)); 39#30=AXIS2_PLACEMENT_3D('',#27,#28,#29); 40#31=CIRCLE('',#30,1.0); 41#32=CARTESIAN_POINT('',(6.28318530718,0.0)); 42#33=DIRECTION('',(-1.0,0.0)); 43#34=VECTOR('',#33,5.28318530718); 44#35=LINE('',#32,#34); 45#36=DEFINITIONAL_REPRESENTATION('',(#35),#*); 46#37=PCURVE('',#5,#36); 47#38=SURFACE_CURVE('',#31,(#37),.PCURVE_S1.); 48#39=EDGE_CURVE('',#9,#11,#38,.T.); 49#40=ORIENTED_EDGE('',*,*,#39,.T.); 50#41=CARTESIAN_POINT('',(0.540302305868,0.841470984808,0.0)); 51#42=DIRECTION('',(0.0,0.0,1.0)); 52#43=VECTOR('',#42,4.0); 53#44=LINE('',#41,#43); 54#45=CARTESIAN_POINT('',(1.0,0.0)); 55#46=DIRECTION('',(0.0,1.0)); 56#47=VECTOR('',#46,4.0); 57#48=LINE('',#45,#47); 58#49=DEFINITIONAL_REPRESENTATION('',(#48),#*); 59#50=PCURVE('',#5,#49); 60#51=SURFACE_CURVE('',#44,(#50),.PCURVE_S1.); 61#52=EDGE_CURVE('',#11,#13,#51,.T.); 62#53=ORIENTED_EDGE('',*,*,#52,.T.); 63#54=CARTESIAN_POINT('',(0.0,0.0,4.0)); 64#55=DIRECTION('',(0.0,0.0,1.0)); 65#56=DIRECTION('',(1.0,0.0,0.0)); 66#57=AXIS2_PLACEMENT_3D('',#54,#55,#56); 67#58=CIRCLE('',#57,1.0); 68#59=CARTESIAN_POINT('',(1.0,4.0)); 69#60=DIRECTION('',(1.0,0.0)); 70#61=VECTOR('',#60,5.28318530718); 71#62=LINE('',#59,#61); 72#63=DEFINITIONAL_REPRESENTATION('',(#62),#*); 73#64=PCURVE('',#5,#63); 74#65=SURFACE_CURVE('',#58,(#64),.PCURVE_S1.); 75#66=EDGE_CURVE('',#13,#7,#65,.T.); 76#67=ORIENTED_EDGE('',*,*,#66,.T.); 77#68=EDGE_LOOP('',(#26,#40,#53,#67)); 78#69=FACE_OUTER_BOUND('',#68,.T.); 79#70=ADVANCED_FACE('',(#69),#5,.T.); 80#71=CLOSED_SHELL('',(#70)); 81#72=SHELL_BASED_SURFACE_MODEL('',(#71)); 82#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 83#9051=PRODUCT('Twi193','Twi193','',(#9050)); 84#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 85#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 86#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 87#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 88#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 89#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 90#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 91#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 92#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 93#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#72),#9060); 94#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 95ENDSEC; 96END-ISO-10303-21;