step-examples/12-3b-wires/Twi039.stp
Sources
- 22-niche-forums.md Y006 (KiCad #21589)
Sender
KiCad pcbnew (custom-pad with arc, bottom layer mirroring + non-zero rotation)
Description
A custom pad shape consisting of one arc and one line is mirrored to the bottom layer with a small non-zero rotation. The mirror operation negates Y but does not invert the arc's parameterisation symmetrically, so the resulting wire's closure check fails at floating-point ULP level; the wire reads as "not closed in 2D" / "self-interfering" even though the geometry is fine.
Reproducer recipe
Footprint with custom pad consisting of one arc + line; place on bottom layer at rotation 1° or 45°; export STEP.
Expected kernel behavior
Heal and accept: a mirror that flips an axis normalizes the parameterisation of orientation-bearing curves symmetrically, not just negates the coordinate. The closure tolerance for self-intersection is coerced to be at least as tight as the kernel's vertex-equality tolerance.
Notes
**See also**: Gs009. **OCC behavior**: the validity-checker does not flag the ULP-level closure failure in the mirrored-then-rotated wire; tier-3 valid-flag should be ignored for this entry. The reader most likely silently fixes or ignores the parameterisation mismatch on import. Synonyms: "mirrored arc footprint fails self-intersection check", "KiCad bottom-layer pad with arc breaks STEP export", "wire closure fails at ULP scale", "mirrored-and-rotated wire flagged as self-touching", "false-positive self-intersection on rotated mirror".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(5) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
n_edges_total >= 2face[0].surface_type == "plane"n_vertices_total >= 4edge[1].curve_type == "circle"edge[1].analytic.radius == 1.0
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi039: ADVANCED_FACE on a PLANE; EDGE_LOOP contains a CIRCLE-arc edge and a LINE edge; arc vertices are mirrored-then-rotated: one closing vertex carries a ULP-scale Y-offset (~2.22e-16) from the arc endpoint evaluation after Y-negation + 1° rotation; this ULP gap IS the mechanism (false-positive self-intersection / not-closed in 2D); both edges ARE wired into EDGE_LOOP â FACE_OUTER_BOUND â ADVANCED_FACE in shell; kernel closure-check must tolerate ULP-scale parameterisation skew */ 3HEADER; 4FILE_DESCRIPTION(('Twi039'),'2;1'); 5FILE_NAME('Twi039.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=PLANE('',#4); 15#6=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(1.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,-1.0)); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 23#14=CIRCLE('',#13,1.0); 24#15=EDGE_CURVE('',#9,#7,#14,.T.); 25#16=ORIENTED_EDGE('',$,$,#15,.T.); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,2.0); 28#19=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 29#20=LINE('',#19,#18); 30#21=EDGE_CURVE('',#7,#9,#20,.T.); 31#22=ORIENTED_EDGE('',$,$,#21,.T.); 32#23=EDGE_LOOP('',(#16,#22)); 33#24=FACE_OUTER_BOUND('',#23,.T.); 34#25=ADVANCED_FACE('',(#24),#5,.T.); 35#26=CLOSED_SHELL('',(#25)); 36#27=SHELL_BASED_SURFACE_MODEL('',(#26)); 37#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 38#9051=PRODUCT('Twi039','Twi039','',(#9050)); 39#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 40#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 41#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 42#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 43#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 44#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 45#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 46#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 47#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 48#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#27),#9060); 49#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 50ENDSEC; 51END-ISO-10303-21;