step-examples/12-3b-wires/Twi183.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckSeam non-cylindrical-seam
Reproducer recipe
Expected kernel behavior
The first edge's pcurve ends at u=2pi while the second's begins at u=0 — the same 3D point on the sphere reached from opposite sides of the periodic boundary — and the contour is then left open from u=1.0 back to u=5.0 at v=0.1. Recognise a seam crossing from the pcurve's full-period jump at a junction whose 3D endpoints coincide, rather than from a surface-type test, and normalise by shifting one pcurve by 2pi so the parametric contour is continuous; a sphere additionally needs degenerate edges at its poles, which a cylinder-only seam rule never supplies. The fourth edge's 3D curve is a straight chord from (2.688,4.186,-0.499) to (1.411,-4.771,0.499) passing through the sphere's interior, and must be replaced by the meridian arc its u=1.0 pcurve implies, or rejected.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(13) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 2face[0].surface_type == "sphere"face[0].quadric.radius == 5.0face[1].surface_type == "sphere"face[1].quadric.radius == 5.0edge[0].curve_type == "circle"edge[0].analytic.radius == 5.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi183: Single ADVANCED_FACE on SPHERICAL_SURFACE (radius 5) in CLOSED_SHELL; outer EDGE_LOOP 4 edges cross the meridian seam (u=0/2pi boundary); E0 arc at v=+0.1 from u=5.0 to u=2pi approaching the seam; E1 lateral at u=0/2pi from v=+0.1 to v=-0.1 crossing the seam meridian; E2 arc at v=-0.1 from u=0 to u=1.0 departing the seam; E3 lateral at u=1.0 from v=-0.1 to v=+0.1 closing the loop; CheckSeam heuristic designed for cylinder does not flag meridian edge on sphere as seam â downstream PCurve fix is skipped IS mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND -> ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi183'),'2;1'); 5FILE_NAME('Twi183.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=SPHERICAL_SURFACE('',#4,5.0); 15#6=CARTESIAN_POINT('',(1.41122528034,-4.77066823738,0.499167083234)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(4.97502082639,0.0,0.499167083234)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(4.97502082639,0.0,-0.499167083234)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(2.68801522424,4.18633567422,-0.499167083234)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.499167083234)); 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,4.975020826390129); 28#19=CARTESIAN_POINT('',(5.0,0.1)); 29#20=DIRECTION('',(1.0,0.0)); 30#21=VECTOR('',#20,1.28318530718); 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('',(0.0,0.0,0.0)); 38#29=DIRECTION('',(0.0,1.0,0.0)); 39#30=DIRECTION('',(1.0,0.0,0.0)); 40#31=AXIS2_PLACEMENT_3D('',#28,#29,#30); 41#32=CIRCLE('',#31,5.0); 42#33=CARTESIAN_POINT('',(0.0,0.1)); 43#34=DIRECTION('',(0.0,-1.0)); 44#35=VECTOR('',#34,0.2); 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,-0.499167083234)); 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,4.975020826390129); 56#47=CARTESIAN_POINT('',(0.0,-0.1)); 57#48=DIRECTION('',(1.0,0.0)); 58#49=VECTOR('',#48,1.0); 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('',(2.68801522424,4.18633567422,-0.499167083234)); 66#57=DIRECTION('',(-0.140268664489,-0.984020106445,0.1096773991)); 67#58=VECTOR('',#57,9.1024602576); 68#59=LINE('',#56,#58); 69#60=CARTESIAN_POINT('',(1.0,-0.1)); 70#61=DIRECTION('',(0.0,1.0)); 71#62=VECTOR('',#61,0.2); 72#63=LINE('',#60,#62); 73#64=DEFINITIONAL_REPRESENTATION('',(#63),#*); 74#65=PCURVE('',#5,#64); 75#66=SURFACE_CURVE('',#59,(#65),.PCURVE_S1.); 76#67=EDGE_CURVE('',#13,#7,#66,.T.); 77#68=ORIENTED_EDGE('',*,*,#67,.T.); 78#69=EDGE_LOOP('',(#27,#41,#55,#68)); 79#70=FACE_OUTER_BOUND('',#69,.T.); 80#71=ADVANCED_FACE('',(#70),#5,.T.); 81#72=CLOSED_SHELL('',(#71)); 82#73=SHELL_BASED_SURFACE_MODEL('',(#72)); 83#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 84#9051=PRODUCT('Twi183','Twi183','',(#9050)); 85#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 86#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 87#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 88#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 89#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 90#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 91#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 92#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 93#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 94#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#73),#9060); 95#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 96ENDSEC; 97END-ISO-10303-21;