Skip to content

Fix RingPad paste arc cutting

This resolves #673, which was causes by the cutting lines not actually reaching the pad boundary because they were hardcoded to a radius of 1mm. I'm not sure why it would ever have worked. But it works now:

image.png

The first several commits just add some useful utilities and tests that I used while tracking this down, such as:

  • str functions for the geometric line, arc, and circle classes (good when a test fails)
  • a handful of tests for the geometric arc class
  • add abs handling for Vector2D which makes assertAlmostEqual in the unittest library work as expected
  • adding the Wuerth generator to the generate.sh system.

Suggest not to squash these commits, the preludes are independent, but help demonstrate a small section of the logic covered by the cutting function.

Edited by John Beard

Merge request reports