Skip to content

[PyGerber]: Incorrect rotation angle for polygon #396

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:
pygerber render raster test.txt -o test.png
with file:
test.txt

Expected behavior

The rendering of this Gerber file generates a rectangle rotated 0 degrees, but it should be rotated 45 degrees.

Not correct:
Image

Correct:

Image

Additional context

Environment:

  • Operating system: Ubuntu 22.04.5
  • Python version: 3.10.12
  • PyGerber version: 2.4.3

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