step-examples/12-3b-wires/Twi186.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixIntersectingEdges parametric-overlap
Reproducer recipe
Expected kernel behavior
Distinguish parametric (UV) proximity from actual 3D proximity: edge 0's pcurve spans u∈[0.3,1.8] at constant v=0.1, and edge 2's pcurve spans the same u∈[0.3,1.8] range (reversed) at constant v=1.0 — identical U extent, but v=0.1 and v=1.0 are different tube latitudes on this major-radius-5, minor-radius-2 torus, giving genuinely different heights (edge 0's vertices sit at z≈0.1997, edge 2's at z≈1.683). A kernel must test for intersection using full 3D (or full UV, both coordinates together) geometry, not U-range overlap alone, since these two edges do not actually meet or cross anywhere.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1face[0].surface_type == "torus"face[0].quadric.major_radius == 5.0face[0].quadric.minor_radius == 2.0edge[1].curve_type == "circle"edge[1].analytic.radius == 2.0edge[3].curve_type == "circle"edge[3].analytic.radius == 2.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi186: Single ADVANCED_FACE on TOROIDAL_SURFACE (major R=5, minor r=2) in CLOSED_SHELL; outer EDGE_LOOP has 4 edges forming a rectangular patch in parameter space; E0 (u:0.3â1.8, v=0.1) and E2 (u:1.8â0.3, v=1.0) have the same u-parameter range â overlapping parametric projections; in 3D they are on different tube latitudes (v=0.1 vs v=1.0) and never intersect; FixIntersectingEdges 2D test fires on u-range overlap and creates false split at phantom 3D intersection IS mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND -> ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi186'),'2;1'); 5FILE_NAME('Twi186.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=TOROIDAL_SURFACE('',#4,5.0,2.0); 15#6=CARTESIAN_POINT('',(6.67781001747,2.06568870641,0.199666833294)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(-1.58814453462,6.80720305253,0.199666833294)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(-1.38152610479,5.92158239545,1.68294196962)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(5.80902346154,1.79694153149,1.68294196962)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.199666833294)); 24#15=DIRECTION('',(0.0,0.0,1.0)); 25#16=DIRECTION('',(1.0,0.0,0.0)); 26#17=AXIS2_PLACEMENT_3D('',#14,#15,#16); 27#18=CIRCLE('',#17,6.990008330556051); 28#19=CARTESIAN_POINT('',(0.3,0.1)); 29#20=DIRECTION('',(1.0,0.0)); 30#21=VECTOR('',#20,1.5); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('',(#22),#*); 33#24=PCURVE('',#5,#23); 34#25=SURFACE_CURVE('',#18,(#24),.PCURVE_S1.); 35#26=EDGE_CURVE('',#7,#9,#25,.T.); 36#27=ORIENTED_EDGE('',*,*,#26,.T.); 37#28=CARTESIAN_POINT('',(-1.13601047347,4.86923815439,0.0)); 38#29=DIRECTION('',(-0.973847630878,-0.227202094693,0.0)); 39#30=DIRECTION('',(-0.227202094693,0.973847630878,0.0)); 40#31=AXIS2_PLACEMENT_3D('',#28,#29,#30); 41#32=CIRCLE('',#31,2.0); 42#33=CARTESIAN_POINT('',(1.8,0.1)); 43#34=DIRECTION('',(0.0,1.0)); 44#35=VECTOR('',#34,0.9); 45#36=LINE('',#33,#35); 46#37=DEFINITIONAL_REPRESENTATION('',(#36),#*); 47#38=PCURVE('',#5,#37); 48#39=SURFACE_CURVE('',#32,(#38),.PCURVE_S1.); 49#40=EDGE_CURVE('',#9,#11,#39,.T.); 50#41=ORIENTED_EDGE('',*,*,#40,.T.); 51#42=CARTESIAN_POINT('',(0.0,0.0,1.68294196962)); 52#43=DIRECTION('',(0.0,0.0,1.0)); 53#44=DIRECTION('',(1.0,0.0,0.0)); 54#45=AXIS2_PLACEMENT_3D('',#42,#43,#44); 55#46=CIRCLE('',#45,6.0806046117362795); 56#47=CARTESIAN_POINT('',(1.8,1.0)); 57#48=DIRECTION('',(-1.0,0.0)); 58#49=VECTOR('',#48,1.5); 59#50=LINE('',#47,#49); 60#51=DEFINITIONAL_REPRESENTATION('',(#50),#*); 61#52=PCURVE('',#5,#51); 62#53=SURFACE_CURVE('',#46,(#52),.PCURVE_S1.); 63#54=EDGE_CURVE('',#11,#13,#53,.T.); 64#55=ORIENTED_EDGE('',*,*,#54,.T.); 65#56=CARTESIAN_POINT('',(4.77668244563,1.47760103331,0.0)); 66#57=DIRECTION('',(-0.295520206661,0.955336489126,0.0)); 67#58=DIRECTION('',(0.955336489126,0.295520206661,0.0)); 68#59=AXIS2_PLACEMENT_3D('',#56,#57,#58); 69#60=CIRCLE('',#59,2.0); 70#61=CARTESIAN_POINT('',(0.3,1.0)); 71#62=DIRECTION('',(0.0,-1.0)); 72#63=VECTOR('',#62,0.9); 73#64=LINE('',#61,#63); 74#65=DEFINITIONAL_REPRESENTATION('',(#64),#*); 75#66=PCURVE('',#5,#65); 76#67=SURFACE_CURVE('',#60,(#66),.PCURVE_S1.); 77#68=EDGE_CURVE('',#13,#7,#67,.T.); 78#69=ORIENTED_EDGE('',*,*,#68,.T.); 79#70=EDGE_LOOP('',(#27,#41,#55,#69)); 80#71=FACE_OUTER_BOUND('',#70,.T.); 81#72=ADVANCED_FACE('',(#71),#5,.T.); 82#73=CLOSED_SHELL('',(#72)); 83#74=SHELL_BASED_SURFACE_MODEL('',(#73)); 84#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 85#9051=PRODUCT('Twi186','Twi186','',(#9050)); 86#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 87#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 88#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 89#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 90#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 91#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 92#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 93#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 94#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 95#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060); 96#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 97ENDSEC; 98END-ISO-10303-21;