step-examples/12-3b-wires/Twi071.stp
Sources
- OCCT `ShapeAnalysis_Wire::CheckSeam` (`ShapeAnalysis_Wire.hxx:298`)
Description
A seam edge of a face on a periodic surface (cylinder, sphere, torus) carries two pcurves; one for the FORWARD side, one for the REVERSED side. The diagnostic detects the case where these have been swapped: FORWARD-side carries the pcurve that should be on REVERSED, and vice versa.
Reproducer recipe
A seam edge of a cylindrical face where the forward pcurve is at U=2π and the reversed pcurve is at U=0 (correct order is the reverse).
Expected kernel behavior
detect the swap and either swap the pcurve handles or report it for caller-side fix.
Notes
Related to existing Gp seam entries. Synonyms: "seam pcurves on wrong sides", "forward-side and reversed-side parametric curves swapped", "periodic-face seam with reversed sides", "seam edge two parametric curves exchanged".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'.PCURVE_S1_AND_S2.')contains(b'forward_at_U_2pi')contains(b'reversed_at_U_0')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Twi071: GEOMETRIC_CURVE_SET containing EDGE_LOOP with SEAM_CURVE on CYLINDRICAL_SURFACE (radius 1, axis +Z); SEAM_CURVE has .PCURVE_S1_AND_S2. with TWO pcurves in swapped order: first (FORWARD) pcurve 'forward_at_U_2pi' at U=2Ï â wrong side; second (REVERSED) pcurve 'reversed_at_U_0' at U=0 â wrong side; correct order: FORWARD at U=0, REVERSED at U=2Ï; CheckSeam detects the swap; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; SEAM_CURVE IS wired into EDGE_CURVE, ORIENTED_EDGE, EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi071'),'2;1'); 5FILE_NAME('Twi071.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,1.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(1.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#10,#12); 23#14=CARTESIAN_POINT('',(6.28318530718,0.0)); 24#15=DIRECTION('',(0.0,1.0)); 25#16=VECTOR('',#15,1.0); 26#17=LINE('forward_at_U_2pi',#14,#16); 27#18=DEFINITIONAL_REPRESENTATION('',(#17),#?); 28#19=PCURVE('',#5,#18); 29#20=CARTESIAN_POINT('',(0.0,0.0)); 30#21=DIRECTION('',(0.0,1.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('reversed_at_U_0',#20,#22); 33#24=DEFINITIONAL_REPRESENTATION('',(#23),#?); 34#25=PCURVE('',#5,#24); 35#26=SEAM_CURVE('',#13,(#19,#25),.PCURVE_S1_AND_S2.); 36#27=EDGE_CURVE('',#7,#9,#26,.T.); 37#28=ORIENTED_EDGE('',*,*,#27,.T.); 38#29=EDGE_LOOP('',(#28)); 39#30=GEOMETRIC_CURVE_SET('',(#29)); 40#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 41#9051=PRODUCT('Twi071','Twi071','',(#9050)); 42#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 43#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 44#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 45#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 46#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 47#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 48#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 49#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 50#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 51#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#30),#9060); 52#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 53ENDSEC; 54END-ISO-10303-21;