Hi list, 

in src/gerbv.h we have... 

 #define APERTURE_PARAMETERS_MAX 102 

the reason for this is stated in a comment above it 

/*
 * Maximum number of aperture parameters is set by the outline aperture
 * macro. There (p. 28) is defined up to 50 points in polygon.
 * So 50 points with x and y plus two for holding extra data gives...
 */ 

I have a gerber set which uses polygons with many more points than 50
and (current git version) of gerbv complained and drew them incorrectly.


In looking at what I believe is the current gerber specification: 


https://www.ucamco.com/files/downloads/file/81/the_gerber_file_format_specification.pdf


on page 119 seems to indicate that there may be 5000 (plus the initial)
points, not 50. 

Accordingly I updated: 

 #define APERTURE_PARAMETERS_MAX 10002 

(5000 points of x:y, plus initial x:y = 10002 parameters) 

and recompiled, gerbv was then happy to read the gerber set in question
and rendered the layers perfectly in a cursory examination. 

I suggest that the number 102 is, either simply wrong, or out-dated and
should be increased substantially as above. 

--- 

James Sleeman 
 
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to