summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
AgeCommit message (Collapse)AuthorFilesLines
2015-05-16Add checks to ensure statement unit conversions are idempotentHamilton Kibbe1-0/+4
2015-04-24Fix for #25. Checking was happening at the gerber/excellon file level, but I ↵Hamilton Kibbe1-2/+3
added units checking at the primitive level so the use case shown in the example is covered. Might want to throw a bunch more assertions in the test code (i started doing a few) to cover multiple calls to unit conversion functions
2015-04-23Fix Gerber generation for coord blocks with implicit op codePaulo Henrique Silva1-0/+3
2015-04-13Fix issue where D01 and D03 are implicit.Paulo Henrique Silva1-4/+7
Based on code from @rdprescott.
2015-04-07Fix CoordStmt with missing i/j offsetsPaulo Henrique Silva1-2/+4
2015-04-07Add some deprecated but still found statementsPaulo Henrique Silva1-6/+26
2015-04-07Add unspecified FS D leading zeros formatPaulo Henrique Silva1-5/+2
FS D leading zero format (probably form Direct) is an unspecified coordinate format where all numbers are specified with both leading and trailing zeros.
2015-03-05Fix for py3Paulo Henrique Silva1-1/+1
2015-03-05Fix tests for macros with no variables.Paulo Henrique Silva1-1/+1
All AM*Primitive classes now handles float for all but the code modifiers. This simplifies the reading/parsing.
2015-03-03Add aperture macro parsing and evaluation.Paulo Henrique Silva1-3/+17
Aperture macros can get complex with arithmetical operations, variables and variables substitution. Current pcb-tools code just read each macro block as an independent unit, this cannot deal with variables that get changed after used. This patch splits the task in two: first we parse all macro content and creates a bytecode representation of all operations. This bytecode representation will be executed when an AD command is issues passing the required parameters. Parsing is heavily based on gerbv using a Shunting Yard approach to math parsing. Integration with rs274x.py code is not finished as I need to figure out how to integrate the final macro primitives with the graphical primitives already in use.
2015-02-20Fix GerberFile.bounds when board origin is negativePaulo Henrique Silva1-13/+10
2015-02-18Add offset operationHamilton Kibbe1-0/+6
2015-02-18Get unit conversion working for Gerber/Excellon filesHamilton Kibbe1-1/+17
Started operations module for file operations/transforms
2015-02-12Update line primitive to take aperture parameterHamilton Kibbe1-3/+3
This fixes the exception referenced in #12. Still need to add rendering code for rectangle aperture lines and arcs. Rectangle strokes will be drawn as polygons by the rendering backends.
2015-01-26merge upstream changesHamilton Kibbe1-0/+2
2015-01-14Refactor AM aperture handling and add unit conversion supportPaulo Henrique Silva1-5/+5
* Add support to convert between metric/impertial * AM primitives are now properly created and can be converted between metric/imperial. (only Outline primitive is supported, no rendering yet)
2015-01-13Fix region primitive creationPaulo Henrique Silva1-1/+1
2014-12-15Fix parsing for OrCAD.Paulo Henrique Silva1-17/+30
* Modify the way we parse parameters to allow more than one parameter in a single line as in the following example: %FSLAX55Y55*MOIN*% %IR0*IPPOS*OFA0.00000B0.00000*MIA0B0*SFA1.00000B1.00000*% (this is from OrCAD 16 default output) * Add missing deprecated parameters. * Change API to use given FileSettings on output. This allows us to use pcb-tools to convert between FS formats.
2014-12-05add ipc2581 primitivesHamilton Kibbe1-2/+2
2014-11-10Bunch of small fixes to improve Gerber read/write.Paulo Henrique Silva1-2/+2
2014-10-26style changePaulo Henrique Silva1-2/+3
2014-10-26Add simple hack to allow evaluation when gerber have macros and polygonPaulo Henrique Silva1-3/+5
2014-10-26Fix parsing for AM macros and support for zero sized circle primitivesPaulo Henrique Silva1-3/+3
2014-10-26Fix parsing of Unknown commandsPaulo Henrique Silva1-0/+4
2014-10-26Merge aperture fixses from upstreamHamilton Kibbe1-4/+4
2014-10-19Test updateHamilton Kibbe1-7/+5
2014-10-18Refactor renderingHamilton Kibbe1-40/+149
2014-10-12update docs and example imagesHamilton Kibbe1-0/+327