step-examples/12-3b-wires/Twi146.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixLacking wrap-around on closed surface
Reproducer recipe
Expected kernel behavior
The closing edge is a straight `LINE` from (-5,0,0) to (5,0,0): a diameter chord through the cylinder's axis, so it does not lie on the radius-5 surface and no pcurve can be projected for it. Construct a closure on a periodic surface in parameter space rather than in 3D: the wire's u values run 0, pi/2, pi, so the closure must continue in the same direction to u=2pi rather than jumping back to u=0, keeping the contour monotone in u and free of self-overlap. If no closure can be placed on the surface — as here — reject the edge with a diagnostic instead of projecting a chord onto an arbitrary meridian.
Notes
RUNTIME-VERIFIED 2026-08-08 — the recorded crash comes from this file's straight-line direction argument, which references a plain direction where the schema declares a vector carrying a magnitude; repairing that one reference makes the file load, so the titled condition is never reached. See BACKLOG (M).
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/* Twi146 - ShapeFix_Wire.FixLacking wrap-around on closed surface 3 * Defect: wire on cylinder missing the edge that crosses the periodic seam; 4 * FixLacking inserts an edge to close the gap but places it in the wrong period 5 * of the cyclic domain (e.g., inserts near u=0 instead of u=2Ï or vice versa). 6 */ 7HEADER; 8FILE_DESCRIPTION(('Twi146 test case','ShapeFix_Wire.FixLacking wrap-around on closed surface'),'2;1'); 9FILE_NAME('Twi146.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 11ENDSEC; 12DATA; 13#1=APPLICATION_CONTEXT('automotive_design'); 14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 15#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#11=DIRECTION('',(0.0,0.0,1.0)); 17#12=DIRECTION('',(1.0,0.0,0.0)); 18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 19 20/* Cylindrical surface (periodic in rotation) */ 21#20=CARTESIAN_POINT('',(0.0,0.0,0.0)); 22#21=DIRECTION('',(0.0,0.0,1.0)); 23#22=AXIS2_PLACEMENT_3D('',#20,#21,#12); 24#30=CYLINDRICAL_SURFACE('',#22,5.0); 25 26/* Wire missing edge across seam - gap near u=0 and u=2Ï */ 27#100=CARTESIAN_POINT('',(5.0,0.0,0.0)); 28#101=VERTEX_POINT('',#100); 29 30/* Edge 1: from (5,0,0) around cylinder partway */ 31#102=CARTESIAN_POINT('',(0.0,5.0,0.0)); 32#103=VERTEX_POINT('',#102); 33#110=LINE('',#100,#12); 34#111=EDGE_CURVE('',#101,#103,#110,.T.); 35 36/* Edge 2: up the cylinder */ 37#104=CARTESIAN_POINT('',(0.0,5.0,10.0)); 38#105=VERTEX_POINT('',#104); 39#112=DIRECTION('',(0.0,0.0,1.0)); 40#113=LINE('',#102,#112); 41#114=EDGE_CURVE('',#103,#105,#113,.T.); 42 43/* Edge 3: down from top, approaching seam from other side */ 44#106=CARTESIAN_POINT('',(-5.0,0.0,10.0)); 45#107=VERTEX_POINT('',#106); 46#115=LINE('',#104,#12); 47#116=EDGE_CURVE('',#105,#107,#115,.T.); 48 49/* Edge 4: down the cylinder on far side */ 50#108=CARTESIAN_POINT('',(-5.0,0.0,0.0)); 51#109=VERTEX_POINT('',#108); 52#117=DIRECTION('',(0.0,0.0,-1.0)); 53#118=LINE('',#106,#117); 54#119=EDGE_CURVE('',#107,#109,#118,.T.); 55 56/* Missing edge: from (-5,0,0) back to (5,0,0) - crosses seam near u=0/u=2Ï */ 57#120=DIRECTION('',(1.0,0.0,0.0)); 58#121=LINE('',#108,#120); 59#122=EDGE_CURVE('',#109,#101,#121,.T.); 60 61/* Edge loop incomplete - missing correct seam-crossing edge */ 62#130=ORIENTED_EDGE('',*,*,#111,.T.); 63#131=ORIENTED_EDGE('',*,*,#114,.T.); 64#132=ORIENTED_EDGE('',*,*,#116,.T.); 65#133=ORIENTED_EDGE('',*,*,#119,.T.); 66#134=ORIENTED_EDGE('',*,*,#122,.T.); 67#135=EDGE_LOOP('',(#130,#131,#132,#133,#134)); 68#136=FACE_OUTER_BOUND('',#135,.T.); 69#137=ADVANCED_FACE('',(#136),#30,.T.); 70#8000=OPEN_SHELL('',(#137)); 71 72/* PRODUCT CHAIN - Mandatory */ 73#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 74#9001=PRODUCT('Twi146','Twi146','',(#9000)); 75#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 76#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 77#9004=PRODUCT_DEFINITION('','',#9002,#9003); 78#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 79#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 80#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 81#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 82#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 83#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 84#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000)); 85#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 86#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 87ENDSEC; 88END-ISO-10303-21;