Skip to content

[PyGerber]: Incorrect conversion of a polygon #398

Description

@pgw333

PyGerber Bug Report

Mandatory checks

Before opening this issue:

  • I have reviewed the README for guidelines and haven't found a solution there.
  • I have reviewed the PyGerber documentation and haven't found a solution there.
  • I have reviewed the existing open issues and verified that this is not a
    duplicate.
  • I have reviewed the existing closed issues and verified that this was already
    resolved or marked as won't fix.
  • I have reviewed the existing pull requests and verified that this is not a already
    known issue.
  • I have reviewed the existing discussions and verified that this is not a already
    known issue.

To Reproduce

Execute command:
gerber convert jpeg test.txt -o test.jpg
with file:
test.txt

Expected behavior

Polygon in the gerber file is not generated correctly:

Image

Correct:

Image

Additional context

This issue is similar to #396 because it involves polygon generation. In that issue, the polygon was generated with the wrong rotation (it works correctly in version 3.0.0a4), but here, no polygon is generated at all.

Environment:

  • Operating system: Ubuntu 22.04.5
  • Python version: 3.10.12
  • PyGerber version: 3.0.0a4

Optional checks

  • I want to contribute example source files attached to this issue in the test suite
    of PyGerber for regression testing purposes.
  • I want to include separate LICENSE file for resource files attached as a result of
    an agreement described in first checkbox in this section.
  • I want to include separate README file for resource files attached as a result of
    an agreement described in first checkbox in this section.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwaiting-for-checkboxesIssue is waiting for reporter to check all relevant checkboxes in issue template

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions