Re: [Gerbv-devel] aperture macro a bit on the way
Brought to you by:
spetm,
thepurlieu
From: Julian <the...@gm...> - 2007-12-29 19:18:51
|
Stefan, What did you think of my earlier idea about "compiling" the macro definitions down to actual macro primitives during the parsing? For example, if the user uses an aperture that uses an aperture macro, amacro.cwould go through the program and calculate exactly what primitives to draw and then store each of these primatives in a gerb_net_t somehow (for example, the "rounded corners rectangle" program that was submitted to geda_user might store a 4x2 rectangle and 4 0.5" diameter circles each time the aperture was flashed in the program). This would also allow the parser to calculate the exact mix/max x and y values for autoscaling, too. Right now, the parser doesn't really know how large the macros are and autoscales incorrectly sometimes. I've also just implemented the knockout Gerber feature which sometimes needs to know the exact size of all apertures for its "border" mode where it draws a clear box around all apertures after it. These could both be handled if we compiled all aperture macros during the parsing. Let me know your thoughts. Cheers, Julian On Dec 28, 2007 5:19 PM, Stefan Petersen <sp...@st...> wrote: > Hi! > > I have commited code to better handle aperture macros. Comments should > be ignored and the calculations made in it parses correctly. Unfortunate > it seems I have taken some shortcuts when drawing, so the macros are not > drawn properly. I use the example from the mail from the gEDA-user > mailing list. > > It is the same in both stable and HEAD, so this is some old bugs > lurking. I have not found these bugs yet, but as I see it the parser is > now ok and generates proper "programs". > > That is what I will continue with. I will use the stable branch to debug > this. So if you see commits go in into the stable branch, don't worry... > Just me experimenting. > > Regards, > /Stefan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gerbv-devel mailing list > Ger...@li... > https://lists.sourceforge.net/lists/listinfo/gerbv-devel > |