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

Rectangle deformed after shapelike::rotate called with Clipper backend #44

Open
shikui08 opened this issue Dec 30, 2021 · 0 comments
Open

Comments

@shikui08
Copy link

shikui08 commented Dec 30, 2021

Calling transformedShape on a rectangle item sometimes gives deformed shape. After debugging I find out that shapelike::rotate introduces small error even with X90 degrees rotation.
Change
auto cosa = rads.cos();
auto sina = rads.sin();
into
auto cosa = int(rads.cos());
auto sina = int(rads.sin());

fix this but it won't work on arbitrary rotation.

I encountered this problem in NfpPlacer, but BottomLeftPlacer works ok.

Is it an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant