step-examples/12-3b-wires/Twi111.stp
Sources
- synthesized — no external source cited
Description
FixDummySeam Dummy-Seam Removal
Reproducer recipe
Expected kernel behavior
The last two edges form an out-and-back pair: both run between the same two vertices along the same line, and both pcurves sit at u=0.002 spanning v from 1.0 down to 0.5 and back, enclosing nothing. They are appended at the end of the loop, after the edge that returns to the start vertex, so the listed sequence is not a connected chain — reorder the edges into a connected chain first, which places the pair at the junction it really belongs to. Then remove both and rejoin the neighbours at the combined vertex: the pair is not a genuine surface seam, because a real seam lies on the periodic boundary at u=0 or u=2pi, not at u=0.002.
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/* Twi111 - ShapeFix_Wire.FixDummySeam dummy-seam removal 3 * Defect: Wire on a closed surface (cylindrical) contains a seam edge that 4 * no longer matches the surface's true seam line. Seam edge should be identified 5 * and removed by FixDummySeam when the edge no longer lies on seam geometry. */ 6HEADER; 7FILE_DESCRIPTION(('Twi111 - FixDummySeam removes stale seam edge'),'2;1'); 8FILE_NAME('Twi111.stp','2026-06-15T00:00:00',('cad-research-suite'),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 10ENDSEC; 11DATA; 12#1=APPLICATION_CONTEXT('automotive_design'); 13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 14/* Cylindrical surface (seam at u=0 and u=2Ï) */ 15#20=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#21=DIRECTION('',(0.0,0.0,1.0)); 17#22=DIRECTION('',(1.0,0.0,0.0)); 18#23=AXIS2_PLACEMENT_3D('',#20,#21,#22); 19#24=CYLINDRICAL_SURFACE('',#23,5.0); 20/* 2D parameter context */ 21#100=(GEOMETRIC_REPRESENTATION_CONTEXT(2) 22 PARAMETRIC_REPRESENTATION_CONTEXT() 23 REPRESENTATION_CONTEXT('uv','2D')); 24/* Five vertices on cylinder: four forming main loop + one for dummy seam edge */ 25#30=CARTESIAN_POINT('P0',(5.0,0.0,0.0)); 26#31=CARTESIAN_POINT('P1',(5.0,0.0,5.0)); 27#32=CARTESIAN_POINT('P2',(3.5,3.5,5.0)); 28#33=CARTESIAN_POINT('P3',(3.5,3.5,0.0)); 29#34=CARTESIAN_POINT('P4',(5.0,0.01,2.5)); 30#40=VERTEX_POINT('',#30); 31#41=VERTEX_POINT('',#31); 32#42=VERTEX_POINT('',#32); 33#43=VERTEX_POINT('',#33); 34#44=VERTEX_POINT('',#34); 35/* Edge 1: P0 -> P1 (vertical at seam u=0) */ 36#50=DIRECTION('',(0.0,0.0,1.0)); 37#51=VECTOR('',#50,1.0); 38#52=LINE('',#30,#51); 39#60=CARTESIAN_POINT('uv0',(0.0,0.0)); 40#61=CARTESIAN_POINT('uv1',(0.0,1.0)); 41#62=POLYLINE('pcurve1',(#60,#61)); 42#63=DEFINITIONAL_REPRESENTATION('pcurve1_def',(#62),#100); 43#64=PCURVE('pcurve1',#24,#63); 44#65=EDGE_CURVE('E1',#40,#41,#52,.T.); 45/* Edge 2: P1 -> P2 */ 46#70=DIRECTION('',(-0.7071067811865475,0.7071067811865475,0.0)); 47#71=VECTOR('',#70,1.0); 48#72=LINE('',#31,#71); 49#80=CARTESIAN_POINT('uv2',(0.7853981633974483,1.0)); 50#81=CARTESIAN_POINT('uv3',(0.7853981633974483,0.0)); 51#82=POLYLINE('pcurve2',(#80,#81)); 52#83=DEFINITIONAL_REPRESENTATION('pcurve2_def',(#82),#100); 53#84=PCURVE('pcurve2',#24,#83); 54#85=EDGE_CURVE('E2',#41,#42,#72,.T.); 55/* Edge 3: P2 -> P3 */ 56#90=DIRECTION('',(0.0,0.0,-1.0)); 57#91=VECTOR('',#90,1.0); 58#92=LINE('',#32,#91); 59#95=CARTESIAN_POINT('uv4',(0.7853981633974483,-1.0)); 60#96=CARTESIAN_POINT('uv5',(0.7853981633974483,-5.0)); 61#97=POLYLINE('pcurve3',(#95,#96)); 62#98=DEFINITIONAL_REPRESENTATION('pcurve3_def',(#97),#100); 63#99=PCURVE('pcurve3',#24,#98); 64#101=EDGE_CURVE('E3',#42,#43,#92,.T.); 65/* Edge 4: P3 -> P0 */ 66#110=DIRECTION('',(0.7071067811865475,-0.7071067811865475,0.0)); 67#111=VECTOR('',#110,1.0); 68#112=LINE('',#33,#110); 69#115=CARTESIAN_POINT('uv6',(0.0,-1.0)); 70#116=CARTESIAN_POINT('uv7',(0.0,0.0)); 71#117=POLYLINE('pcurve4',(#115,#116)); 72#118=DEFINITIONAL_REPRESENTATION('pcurve4_def',(#117),#100); 73#119=PCURVE('pcurve4',#24,#118); 74#120=EDGE_CURVE('E4',#43,#40,#112,.T.); 75/* Defect: Dummy seam edge (P1 -> P4 -> P1) 76 This edge is marked as a seam but no longer lies on the cylinder seam (u=0 or u=2Ï). 77 It's an extraneous seam edge that FixDummySeam should detect and remove. 78 Instead of connecting at u=0 (true seam), it connects near uâ0.002 (P4 offset). */ 79#130=DIRECTION('',(0.0,0.0,1.0)); 80#131=VECTOR('',#130,0.5); 81#132=LINE('',#31,#131); 82#135=CARTESIAN_POINT('uv8',(0.002,1.0)); 83#136=CARTESIAN_POINT('uv9',(0.002,0.5)); 84#137=POLYLINE('pcurve5',(#135,#136)); 85#138=DEFINITIONAL_REPRESENTATION('pcurve5_def',(#137),#100); 86#139=PCURVE('pcurve5',#24,#138); 87#140=EDGE_CURVE('dummy_seam',#41,#44,#132,.T.); 88/* Dummy seam closing back to P1 */ 89#150=DIRECTION('',(0.0,0.0,-1.0)); 90#151=VECTOR('',#150,0.5); 91#152=LINE('',#34,#151); 92#155=CARTESIAN_POINT('uv10',(0.002,0.5)); 93#156=CARTESIAN_POINT('uv11',(0.002,1.0)); 94#157=POLYLINE('pcurve6',(#155,#156)); 95#158=DEFINITIONAL_REPRESENTATION('pcurve6_def',(#157),#100); 96#159=PCURVE('pcurve6',#24,#158); 97#160=EDGE_CURVE('seam_close',#44,#41,#152,.T.); 98/* Wire loop with dummy seam edges inserted at P1 */ 99#170=ORIENTED_EDGE('',*,*,#65,.T.); 100#171=ORIENTED_EDGE('',*,*,#85,.T.); 101#172=ORIENTED_EDGE('',*,*,#101,.T.); 102#173=ORIENTED_EDGE('',*,*,#120,.T.); 103#174=ORIENTED_EDGE('',*,*,#140,.T.); 104#175=ORIENTED_EDGE('',*,*,#160,.T.); 105#176=EDGE_LOOP('',(#170,#171,#172,#173,#174,#175)); 106#177=FACE_OUTER_BOUND('',#176,.T.); 107#178=ADVANCED_FACE('',(#177),#24,.T.); 108#180=CLOSED_SHELL('',(#178)); 109/* PRODUCT chain */ 110#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 111#9001=PRODUCT('Twi111','Twi111','',(#9000)); 112#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 113#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 114#9004=PRODUCT_DEFINITION('','',#9002,#9003); 115#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 116#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 117#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 118#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 119#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 120#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 121#9021=SHELL_BASED_SURFACE_MODEL('wrap_sbsm',(#180)); 122#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 123#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 124ENDSEC; 125END-ISO-10303-21;