step-examples/12-3b-wires/Twi201.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixSeam mismatched-pcurve-direction
Reproducer recipe
Expected kernel behavior
The edge carries two pcurves of opposite parametric sense, running 0 to 2pi and 2pi to 0, which is how a seam edge is presented — but its surface is a plane, and a plane has no period in either direction and therefore can never carry a seam. Reject the second pcurve, and the seam reading with it, instead of taking whichever pcurve is listed first as canonical; accept a two-pcurve edge only when the surface is genuinely periodic in the relevant direction and the two pcurves differ there by exactly one period.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi201: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 3 edges on PLANE; PLANE: normal +Z, origin (0,0,0); seam_fwd: seam edge; SURFACE_CURVE carries two PCURVEs â pcurve_fwd parametrized u=0â2Ï (forward) tagged PCURVE_S1; pcurve_rev parametrized u=2Ïâ0 (reversed) tagged PCURVE_S2; mismatched pcurve directions on same edge IS defect; FixSeam assumes first pcurve direction canonical â wrong for side-2; parametric orientation mismatch IS mechanism; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi201'),'2;1'); 5FILE_NAME('Twi201.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=DIRECTION('',(0.0,0.0,1.0)); 17#8=DIRECTION('',(1.0,0.0,0.0)); 18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8); 19#10=PLANE('',#9); 20#11=CARTESIAN_POINT('',(1.0,0.0,0.0)); 21#12=VERTEX_POINT('',#11); 22#13=CARTESIAN_POINT('',(0.0,1.0,0.0)); 23#14=VERTEX_POINT('',#13); 24#15=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 25#16=VERTEX_POINT('',#15); 26#17=CARTESIAN_POINT('',(1.0,0.0,0.0)); 27#18=DIRECTION('',(0.0,1.0,0.0)); 28#19=VECTOR('',#18,6.28318530718); 29#20=LINE('',#17,#19); 30#21=CARTESIAN_POINT('',(0.0,0.0)); 31#22=DIRECTION('',(1.0,0.0)); 32#23=VECTOR('',#22,6.28318530718); 33#24=LINE('',#21,#23); 34#25=DEFINITIONAL_REPRESENTATION('',(#24),#*); 35#26=PCURVE('seam_fwd',#5,#25); 36#27=CARTESIAN_POINT('',(6.28318530718,0.0)); 37#28=DIRECTION('',(-1.0,0.0)); 38#29=VECTOR('',#28,6.28318530718); 39#30=LINE('',#27,#29); 40#31=DEFINITIONAL_REPRESENTATION('',(#30),#*); 41#32=PCURVE('seam_rev',#10,#31); 42#33=SURFACE_CURVE('',#20,(#26,#32),.PCURVE_S1.); 43#34=EDGE_CURVE('seam_edge',#12,#12,#33,.T.); 44#35=ORIENTED_EDGE('',*,*,#34,.T.); 45#36=CARTESIAN_POINT('',(1.0,0.0,0.0)); 46#37=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 47#38=VECTOR('',#37,1.41421356237); 48#39=LINE('',#36,#38); 49#40=CARTESIAN_POINT('',(1.0,0.0)); 50#41=DIRECTION('',(-0.707106781187,0.707106781187)); 51#42=VECTOR('',#41,1.41421356237); 52#43=LINE('',#40,#42); 53#44=DEFINITIONAL_REPRESENTATION('',(#43),#*); 54#45=PCURVE('',#5,#44); 55#46=SURFACE_CURVE('',#39,(#45),.PCURVE_S1.); 56#47=EDGE_CURVE('fill_e1',#12,#14,#46,.T.); 57#48=ORIENTED_EDGE('',*,*,#47,.T.); 58#49=CARTESIAN_POINT('',(0.0,1.0,0.0)); 59#50=DIRECTION('',(0.707106781187,-0.707106781187,0.0)); 60#51=VECTOR('',#50,1.41421356237); 61#52=LINE('',#49,#51); 62#53=CARTESIAN_POINT('',(0.0,1.0)); 63#54=DIRECTION('',(0.707106781187,-0.707106781187)); 64#55=VECTOR('',#54,1.41421356237); 65#56=LINE('',#53,#55); 66#57=DEFINITIONAL_REPRESENTATION('',(#56),#*); 67#58=PCURVE('',#5,#57); 68#59=SURFACE_CURVE('',#52,(#58),.PCURVE_S1.); 69#60=EDGE_CURVE('fill_e2',#14,#12,#59,.T.); 70#61=ORIENTED_EDGE('',*,*,#60,.T.); 71#62=EDGE_LOOP('',(#35,#48,#61)); 72#63=GEOMETRIC_CURVE_SET('',(#62)); 73#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 74#9051=PRODUCT('Twi201','Twi201','',(#9050)); 75#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 76#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 77#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 78#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 79#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 80#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 81#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 82#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 83#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 84#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#63),#9060); 85#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 86ENDSEC; 87END-ISO-10303-21;