Skip to content

Incorrect gerber bounds computed by gerbv #336

@eyal0

Description

@eyal0

For this file, gerbv is computing the wrong bounds:

%FSLAX46Y46*%
%MOMM*%
%LPD*%
G01*
%ADD10C,0.100000*%
D10*
X-20000000Y-20000000D02*
G75*
G02*
Y20000000I20000000J20000000D01*
X20000000I20000000J-20000000D01*
Y-20000000I-20000000J-20000000D01*
X-20000000I-20000000J20000000D01*
M02*

That gerber file is a drawing of a circle made by four arcs. But the arcs are on in the quadrants, they are arcs at north, south, east and west. The cricle circumscribes an aligned square with opposite corners are 2,2 and -2,-2.

Image

In my testing, gerbv is reporting that the bounding box for the shape is too small:

Bounding box: POLYGON((-0.86811 -0.86811,-0.86811 0.86811,0.86811 0.86811,0.86811 -0.86811,-0.86811 -0.86811))

The issue was found here: pcb2gcode/pcb2gcode#784

I will look at it

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions