Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect rendering of code 1 circle primitive with rotation #252

Open
Argmaster opened this issue Jul 9, 2024 · 0 comments
Open

Incorrect rendering of code 1 circle primitive with rotation #252

Argmaster opened this issue Jul 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Argmaster
Copy link
Owner

Describe the bug

Circle (code 1) macro primitives in raster renders are not rotated.

To Reproduce

Steps to reproduce the behavior:

Render following gerber file:

%FSLAX46Y46*%
%MOMM*%
%LPD*%
G01*
G04 Parametrized macro with circle flash with offset from center and rotatio around macro origin.*
%AMMacro*
    1,1,$1,$2,$3,$4*
%
%ADD10R,10.0X0.05*%
%ADD11R,0.05X0.3*%

%ADD12R,0.05X10.0*%
%ADD13R,0.3X0.05*%

%ADD99Macro,0.7X0.5X0.5X90.0*%

D10*
X0Y0D03*

D11*
X5000000Y0D03*
X4000000Y0D03*
X3000000Y0D03*
X2000000Y0D03*
X1000000Y0D03*
X-00000Y0D03*
X-1000000Y0D03*
X-2000000Y0D03*
X-3000000Y0D03*
X-4000000Y0D03*
X-5000000Y0D03*

D12*
X0Y0D03*

D13*
X0Y5000000D03*
X0Y4000000D03*
X0Y3000000D03*
X0Y2000000D03*
X0Y1000000D03*
X0Y-00000D03*
X0Y-1000000D03*
X0Y-2000000D03*
X0Y-3000000D03*
X0Y-4000000D03*
X0Y-5000000D03*

D99*
X0Y0D03*

M02*

Expected behavior

Circle macro primitive should be rotated around macro origin.

Screenshots

macro_offset_rotation

Expected:

image

Desktop (please complete the following information):

  • OS: agnostic
  • Python version: agnostic
  • PyGerber version: 2.4.0
@Argmaster Argmaster added the bug Something isn't working label Jul 9, 2024
@Argmaster Argmaster added this to the 2.4.1 milestone Jul 9, 2024
@Argmaster Argmaster self-assigned this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Research
Development

No branches or pull requests

1 participant