step-examples/12-3b-wires/Twi022.stp
Sources
- 05-occt-shapefix.md F042 (FixSeam)
- 04-occt-translation.md Q032 (seam curve with same pcurve twice)
Description
A seam edge on a periodic face is supposed to carry two pcurves; one on the U=0 side and one on the U=period side. The input either swaps the two pcurves (each is on the wrong side) or assigns the same pcurve to both slots. The wire fails to close in UV: a step of one full period that the seam edge should take in parameter space is missing.
Reproducer recipe
`SEAM_CURVE` referencing the same `PCURVE` for both `associated_geometry` slots.
Expected kernel behavior
detect the missing period-shift and either shift one pcurve by the surface period to restore UV closure, swap the two pcurves to their correct sides, or reject as malformed.
Notes
**See also**: Gp011, Gp012. Synonyms: "seam parameter curves the same on both sides", "duplicated 2D trace on seam", "swapped sides on periodic face seam", "missing period shift on seam", "seam fails to close in UV".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(6) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
n_edges_total >= 2face[0].surface_type == "cylinder"n_vertices_total >= 4face[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
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi022: OPEN_SHELL with one ADVANCED_FACE on a CYLINDRICAL_SURFACE (radius 1, height 2); FACE_OUTER_BOUND references an EDGE_LOOP with two horizontal arcs (top and bottom) and one SEAM_CURVE whose both associated_geometry slots reference the SAME PCURVE; duplicated (same-entity) pcurve in SEAM_CURVE IS the mechanism â missing period shift; SEAM_CURVE IS wired into EDGE_CURVE, ORIENTED_EDGE, EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; kernel must detect missing period shift and shift one pcurve by 2Ï or reject as malformed */ 3HEADER; 4FILE_DESCRIPTION(('Twi022'),'2;1'); 5FILE_NAME('Twi022.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,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(1.0,0.0,2.0)); 18#9=VERTEX_POINT('',#8); 19#10=DIRECTION('',(0.0,0.0,1.0)); 20#11=VECTOR('',#10,2.0); 21#12=CARTESIAN_POINT('',(1.0,0.0,0.0)); 22#13=LINE('',#12,#11); 23#14=CARTESIAN_POINT('',(0.0,0.0)); 24#15=DIRECTION('',(0.0,1.0)); 25#16=VECTOR('',#15,2.0); 26#17=LINE('',#14,#16); 27#18=DEFINITIONAL_REPRESENTATION('',(#17),#?); 28#19=CARTESIAN_POINT('',(0.0,0.0)); 29#20=DIRECTION('',(0.0,1.0)); 30#21=VECTOR('',#20,2.0); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('',(#22),#?); 33#24=PCURVE('',#5,#18); 34#25=SEAM_CURVE('',#13,(#24,#24),.PCURVE_S1.); 35#26=EDGE_CURVE('',#7,#9,#25,.T.); 36#27=ORIENTED_EDGE('',*,*,#26,.T.); 37#28=ORIENTED_EDGE('',*,*,#26,.F.); 38#29=CARTESIAN_POINT('',(1.0,0.0,2.0)); 39#30=VERTEX_POINT('',#29); 40#31=CARTESIAN_POINT('',(0.0,0.0,2.0)); 41#32=DIRECTION('',(0.0,0.0,1.0)); 42#33=DIRECTION('',(1.0,0.0,0.0)); 43#34=AXIS2_PLACEMENT_3D('',#31,#32,#33); 44#35=CIRCLE('',#34,1.0); 45#36=EDGE_CURVE('',#9,#30,#35,.T.); 46#37=ORIENTED_EDGE('',*,*,#36,.T.); 47#38=CARTESIAN_POINT('',(1.0,0.0,0.0)); 48#39=VERTEX_POINT('',#38); 49#40=CARTESIAN_POINT('',(0.0,0.0,0.0)); 50#41=DIRECTION('',(0.0,0.0,1.0)); 51#42=DIRECTION('',(1.0,0.0,0.0)); 52#43=AXIS2_PLACEMENT_3D('',#40,#41,#42); 53#44=CIRCLE('',#43,1.0); 54#45=EDGE_CURVE('',#39,#7,#44,.T.); 55#46=ORIENTED_EDGE('',*,*,#45,.F.); 56#47=EDGE_LOOP('',(#46,#27,#37,#28)); 57#48=FACE_OUTER_BOUND('',#47,.T.); 58#49=ADVANCED_FACE('',(#48),#5,.T.); 59#50=OPEN_SHELL('',(#49)); 60#51=SHELL_BASED_SURFACE_MODEL('',(#50)); 61#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 62#9051=PRODUCT('Twi022','Twi022','',(#9050)); 63#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 64#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 65#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 66#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 67#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 68#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 69#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 70#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 71#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 72#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#51),#9060); 73#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 74ENDSEC; 75END-ISO-10303-21;