kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26616
[PATCH] Gerbv: fix Moire macro
As reported in the Gerber standard, section 4.13.4.7, Moire parameters 4
and 5 represent the ring thickness and gap width.
Since we are working with diameters, at each step the outer ring diameter
should be decreased by two times their sum.
---
gerbview/class_aperture_macro.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gerbview/class_aperture_macro.cpp b/gerbview/class_aperture_macro.cpp
index 03e1f2c..cf87e49 100644
--- a/gerbview/class_aperture_macro.cpp
+++ b/gerbview/class_aperture_macro.cpp
@@ -280,7 +280,7 @@ void AM_PRIMITIVE::DrawBasicShape( GERBER_DRAW_ITEM* aParent,
// Draw circles:
wxPoint center = aParent->GetABPosition( curPos );
// adjust outerDiam by this on each nested circle
- int diamAdjust = (gap + penThickness); //*2; //Should we use * 2 ?
+ int diamAdjust = (gap + penThickness) * 2;
for( int i = 0; i < numCircles; ++i, outerDiam -= diamAdjust )
{
Follow ups