step-examples/12-3b-wires/Twi154.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixSeam edge-direction reversed
Reproducer recipe
Expected kernel behavior
The seam edge is declared with vertices (1,0,1) then (1,0,0) while its `LINE` runs upward in +Z from (1,0,0), and the wire uses it through an `ORIENTED_EDGE` flagged `.F.`, so its effective traversal is the composition of two reversals. Derive each edge's traversal direction from that composition — curve sense combined with the `ORIENTED_EDGE` flag — and apply any seam period shift in the composed direction; shifting along the curve's intrinsic direction moves a reversed seam edge the wrong way by a full period. The other edge must also be rejected: its `TRIMMED_CURVE` is an arc of a circle lying at z=0 while its declared vertices sit at z=0 and z=1, so it cannot connect them.
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi154 - ShapeFix_Wire.FixSeam edge-direction reversed on seam 3 * Defect: Wire on cylindrical surface with seam edge in reverse (.F.) orientation. 4 * FixSeam assumes edges are in forward (.T.) orientation and applies period 5 * correction unconditionally. Reversed-orientation edges have opposite parameter 6 * direction; applying positive period shift moves parameter backward instead. 7 * (ShapeFix_Wire.cxx seam handling; orientation not checked before period adjustment) */ 8HEADER; 9FILE_DESCRIPTION(('Twi154 test case','Seam edge with reversed orientation'),'2;1'); 10FILE_NAME('Twi154.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 11FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 12ENDSEC; 13DATA; 14#1=APPLICATION_CONTEXT('automotive_design'); 15#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 16#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#11=DIRECTION('',(0.0,0.0,1.0)); 18#12=DIRECTION('',(1.0,0.0,0.0)); 19#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 20/* Cylindrical surface: radius 1, height from 0 to 2 */ 21#20=AXIS2_PLACEMENT_3D('',#10,#11,#12); 22#21=CYLINDRICAL_SURFACE('',#20,1.0); 23/* Vertices: seam edge connects two points at U=0 (or U=2*pi) at different V */ 24#30=CARTESIAN_POINT('',(1.0,0.0,0.0)); 25#31=VERTEX_POINT('',#30); 26#32=CARTESIAN_POINT('',(1.0,0.0,1.0)); 27#33=VERTEX_POINT('',#32); 28#34=CARTESIAN_POINT('',(0.5,0.866,0.0)); 29#35=VERTEX_POINT('',#34); 30#36=CARTESIAN_POINT('',(0.5,0.866,1.0)); 31#37=VERTEX_POINT('',#36); 32/* 3D seam curve: line on cylinder from (1,0,0) to (1,0,2) at U=0 */ 33#40=DIRECTION('',(0.0,0.0,1.0)); 34#41=VECTOR('',#40,2.0); 35#42=LINE('',#30,#41); 36/* Regular arc (pi/3 radians) on cylinder surface */ 37#50=AXIS2_PLACEMENT_3D('',#10,#11,#12); 38#51=CIRCLE('',#50,1.0); 39#52=TRIMMED_CURVE('',#51,0.0,1.047197,*,.T.); 40/* Seam edge in reverse orientation (.F.) - this is the defect */ 41#60=EDGE_CURVE('',#33,#31,#42,.T.); 42#61=EDGE_CURVE('',#35,#37,#52,.T.); 43#62=ORIENTED_EDGE('',*,*,#60,.F.); 44#63=ORIENTED_EDGE('',*,*,#61,.T.); 45#64=EDGE_LOOP('',(#62,#63)); 46#65=FACE_OUTER_BOUND('',#64,.T.); 47#66=ADVANCED_FACE('',(#65),#21,.T.); 48/* Mandatory PRODUCT chain */ 49#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 50#9001=PRODUCT('Twi154','Twi154','',(#9000)); 51#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 52#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 53#9004=PRODUCT_DEFINITION('','',#9002,#9003); 54#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 55#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 56#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 57#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 58#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 59#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 60#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020)); 61#9020=CLOSED_SHELL('shell',(#66)); 62#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 63#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 64ENDSEC; 65END-ISO-10303-21;