Skip to content

Bug in scale location handling #938

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

Open
MatthiasJ1 opened this issue Mar 15, 2025 · 2 comments
Open

Bug in scale location handling #938

MatthiasJ1 opened this issue Mar 15, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@MatthiasJ1
Copy link
Contributor

p = Box(10,10,5)
p = offset(split(split(p, Plane.YZ, keep=Keep.BOTH), keep=Keep.BOTH), -1)
Image
p = [o.moved(Location(o.bounding_box().to_align_offset(Align.CENTER))) for o in p]
Image
p = scale(p, 10)
Image
@gumyr gumyr added the bug Something isn't working label Mar 17, 2025
@gumyr gumyr added this to the Not Gating Release 1.0.0 milestone Mar 17, 2025
@MatthiasJ1
Copy link
Contributor Author

Just to be clear, the example I included specifically shows the issue clearly, however, if the object is ever transformed at all the result will be incorrect.

@MatthiasJ1
Copy link
Contributor Author

p = scale(Pos(0,0,-0.5) * extrude(Rectangle(1,1), 1), 10)
Image

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
None yet
Development

No branches or pull requests

2 participants