step-examples/12-3b-wires/Twi149.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixDummySeam non-orientable surface
Reproducer recipe
Expected kernel behavior
The wire is a closed 5x5 rectangle on a `PLANE`. Its second and fourth edges run in exactly opposite directions, (0,1,0) and (0,-1,0), but they lie 5 units apart at x=5 and x=0 and are not consecutive, so a duplicate-pair test must require both adjacency in the wire and curves that coincide within tolerance along their length — opposite tangent direction alone is not evidence. Neither condition holds here, so all four edges must be kept; removing the fourth would open the boundary and destroy the face.
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/* Twi149 - ShapeFix_Wire.FixDummySeam non-orientable surface 3 * Defect: wire on a Möbius-strip-like surface; FixDummySeam assumes orientability 4 * and incorrectly removes a "seam" that's actually a topology-defining edge on 5 * a non-orientable surface. 6 */ 7HEADER; 8FILE_DESCRIPTION(('Twi149 test case','ShapeFix_Wire.FixDummySeam non-orientable surface'),'2;1'); 9FILE_NAME('Twi149.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 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/* Simple plane as proxy for non-orientable surface */ 21#20=PLANE('',#13); 22 23/* Wire on non-orientable surface with edge that looks like seam to FixDummySeam 24 but is actually critical for topology. Wire with 4 edges forming closed loop, 25 where edge2 and edge4 appear to be seam duplicates but aren't. */ 26 27#100=CARTESIAN_POINT('',(0.0,0.0,0.0)); 28#101=VERTEX_POINT('',#100); 29 30#102=CARTESIAN_POINT('',(5.0,0.0,0.0)); 31#103=VERTEX_POINT('',#102); 32 33#104=CARTESIAN_POINT('',(5.0,5.0,0.0)); 34#105=VERTEX_POINT('',#104); 35 36#106=CARTESIAN_POINT('',(0.0,5.0,0.0)); 37#107=VERTEX_POINT('',#106); 38 39/* Edge 1: (0,0,0) to (5,0,0) along u-direction (base direction) */ 40#120=DIRECTION('',(1.0,0.0,0.0)); 41#121=LINE('',#100,#120); 42#122=EDGE_CURVE('',#101,#103,#121,.T.); 43 44/* Edge 2: (5,0,0) to (5,5,0) along v-direction (first transverse) */ 45#123=DIRECTION('',(0.0,1.0,0.0)); 46#124=LINE('',#102,#123); 47#125=EDGE_CURVE('',#103,#105,#124,.T.); 48 49/* Edge 3: (5,5,0) back along u-direction (appears seam-like to naive detector) */ 50#126=DIRECTION('',(-1.0,0.0,0.0)); 51#127=LINE('',#104,#126); 52#128=EDGE_CURVE('',#105,#107,#127,.T.); 53 54/* Edge 4: (0,5,0) back along v-direction (appears duplicate of edge2) */ 55#129=DIRECTION('',(0.0,-1.0,0.0)); 56#130=LINE('',#106,#129); 57#131=EDGE_CURVE('',#107,#101,#130,.T.); 58 59/* Edge loop - FixDummySeam might wrongly try to remove edge4 as seam */ 60#140=ORIENTED_EDGE('',*,*,#122,.T.); 61#141=ORIENTED_EDGE('',*,*,#125,.T.); 62#142=ORIENTED_EDGE('',*,*,#128,.T.); 63#143=ORIENTED_EDGE('',*,*,#131,.T.); 64#144=EDGE_LOOP('',(#140,#141,#142,#143)); 65#145=FACE_OUTER_BOUND('',#144,.T.); 66#146=ADVANCED_FACE('',(#145),#20,.T.); 67#8000=OPEN_SHELL('',(#146)); 68 69/* PRODUCT CHAIN - Mandatory */ 70#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 71#9001=PRODUCT('Twi149','Twi149','',(#9000)); 72#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 73#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 74#9004=PRODUCT_DEFINITION('','',#9002,#9003); 75#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 76#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 77#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 78#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 79#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 80#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 81#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000)); 82#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 83#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 84ENDSEC; 85END-ISO-10303-21;