Twi134 — ShapeFix_Wire.FixShifted non-2π shift

§12.3b

topology

Sources

Description

ShapeFix_Wire.FixShifted non-2π shift

Reproducer recipe

Expected kernel behavior

Recompute or reject a pcurve that disagrees with its own 3D curve by a half-period: edge 2's 3D circle arc correctly runs from (-2.5,4.330127,0) at θ=120° to (-2.5,-4.330127,0) at θ=240° — the true middle third connecting edge 1's end to edge 3's start — but its pcurve is parametrized over u∈[5π/3,7π/3] (300° to 60°, wrapping the seam), exactly π off from the u∈[2π/3,4π/3] range its 3D geometry actually occupies. A kernel must detect that the pcurve's evaluated 3D points don't match the edge's real 3D curve — not just check that the shift is a multiple of the full 2π period — and renormalize or reject the edge accordingly.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi134: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 3 edges; SURFACE_OF_REVOLUTION: revolves straight line profile around Z axis, radius=5; 3D circle at z=0, radius=5; edges span θ=[0,2π/3], [2π/3,4π/3], [4π/3,2π]; e1 pcurve: u=[0,2π/3] — correctly positioned; e2 pcurve: u=[π+2π/3, π+4π/3] — shifted by π IS defect (half-period shift); e3 pcurve: u=[4π/3,2π] — correctly positioned; FixShifted corrects only 2π-multiple shifts; π-shift on e2 is skipped IS defect; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi134'),'2;1');
5FILE_NAME('Twi134.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('',(5.0,0.0,-1.0));
11#2=DIRECTION('',(0.0,0.0,1.0));
12#3=VECTOR('',#2,2.0);
13#4=LINE('',#1,#3);
14#5=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#6=DIRECTION('',(0.0,0.0,1.0));
16#7=AXIS1_PLACEMENT('',#5,#6);
17#8=SURFACE_OF_REVOLUTION('',#4,#7);
18#9=CARTESIAN_POINT('',(0.0,0.0,0.0));
19#10=DIRECTION('',(0.0,0.0,1.0));
20#11=DIRECTION('',(1.0,0.0,0.0));
21#12=AXIS2_PLACEMENT_3D('',#9,#10,#11);
22#13=CIRCLE('',#12,5.0);
23#14=CARTESIAN_POINT('',(5.0,0.0,0.0));
24#15=VERTEX_POINT('',#14);
25#16=CARTESIAN_POINT('',(-2.5,4.33012701892,0.0));
26#17=VERTEX_POINT('',#16);
27#18=CARTESIAN_POINT('',(-2.5,-4.33012701892,0.0));
28#19=VERTEX_POINT('',#18);
29#20=CARTESIAN_POINT('',(0.0,0.5));
30#21=DIRECTION('',(1.0,0.0));
31#22=VECTOR('',#21,2.09439510239);
32#23=LINE('',#20,#22);
33#24=DEFINITIONAL_REPRESENTATION('',(#23),#*);
34#25=PCURVE('',#8,#24);
35#26=SURFACE_CURVE('',#13,(#25),.PCURVE_S1.);
36#27=EDGE_CURVE('',#15,#17,#26,.T.);
37#28=ORIENTED_EDGE('',*,*,#27,.T.);
38#29=CARTESIAN_POINT('',(5.23598775598,0.5));
39#30=DIRECTION('',(1.0,0.0));
40#31=VECTOR('',#30,2.09439510239);
41#32=LINE('',#29,#31);
42#33=DEFINITIONAL_REPRESENTATION('',(#32),#*);
43#34=PCURVE('',#8,#33);
44#35=SURFACE_CURVE('',#13,(#34),.PCURVE_S1.);
45#36=EDGE_CURVE('',#17,#19,#35,.T.);
46#37=ORIENTED_EDGE('',*,*,#36,.T.);
47#38=CARTESIAN_POINT('',(4.18879020479,0.5));
48#39=DIRECTION('',(1.0,0.0));
49#40=VECTOR('',#39,2.09439510239);
50#41=LINE('',#38,#40);
51#42=DEFINITIONAL_REPRESENTATION('',(#41),#*);
52#43=PCURVE('',#8,#42);
53#44=SURFACE_CURVE('',#13,(#43),.PCURVE_S1.);
54#45=EDGE_CURVE('',#19,#15,#44,.T.);
55#46=ORIENTED_EDGE('',*,*,#45,.T.);
56#47=EDGE_LOOP('',(#28,#37,#46));
57#48=GEOMETRIC_CURVE_SET('',(#47));
58#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
59#9051=PRODUCT('Twi134','Twi134','',(#9050));
60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
62#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
69#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#48),#9060);
70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
71ENDSEC;
72END-ISO-10303-21;