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

Grouped translation of primitives fails when one of them has the Twist modifier #9

Open
khoparzi opened this issue Mar 8, 2021 · 1 comment

Comments

@khoparzi
Copy link

khoparzi commented Mar 8, 2021

When we try to translate the Union as a group, the combined shape should move forward, instead only the first primitive translates.

march( Union( Torus(), Twist(Torus(Vec2(.5, .125), 8)) ).translate(0, 0, 3) ).render(5, true)

@khoparzi
Copy link
Author

khoparzi commented Mar 8, 2021

Ok, turns out Bend has the same issue and you don't have to apply any combinators in either of them.

march( Bend(Torus()).translate(0, 0, 2) ).render(5, true)

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