tracespace / gerber-to-svg

gerber-to-svg development moved to tracespace/tracespace
https://github.com/tracespace/tracespace
MIT License
81 stars 17 forks source link

0 width dimension layer not handled properly #21

Closed clemtaylor closed 9 years ago

clemtaylor commented 9 years ago

In eagle I normally use 0 width lines to make up the board dimension layer. svgerber does not seem to use the 0 width lines to define the board perimeter so the board dimension seems to be purely bounding box based.

This is a section from eagle: image

And the same in gerbv: image

It renders in svgerber as: image

The board outline layer comes up blank in svgerber, unlike the clockblock example.

What is svgerber expecting in the dimension layer?

mcous commented 9 years ago

Hi! Can you please open this issue in svgerber with a copy of your outline layer if possible? This issue is related to the board builder there; gerber-to-svg is only concerned with individual layer image generation. Also, can you try setting the width of the outline layer to something non-zero and see if that works?

svgerber is expecting a manifold (i.e. no gaps; there's currently no gap filling capability) trace or set of traces with a width that is greater than 0. The width thing is arbitrary, and will be ditched when I find the time to switch svgerber over to using tracespace/pcb-stackup.