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

Make group and transform operations work on all shapes #825

Merged
merged 6 commits into from
Jul 15, 2022
Merged

Make group and transform operations work on all shapes #825

merged 6 commits into from
Jul 15, 2022

Conversation

hannobraun
Copy link
Owner

Both group and transform only worked on 3D shapes, but there was no good reason for that. Both operations can work on 2D shapes just as well. This pull request simplifies the fj crate, merging fj::Shape3d into fj::Shape to remove the distinction between 3D shapes and shapes in general. This is probably not the structure we want to have long-term, but it will do for now.

Please note that in the case of transform, these are still 3D transformations. The 2D objects it now support live in 3D space, so it makes sense to do it like this.

cc @U007D, who made me aware of this limitation

@hannobraun hannobraun enabled auto-merge July 15, 2022 11:45
@hannobraun hannobraun merged commit 4e3b840 into main Jul 15, 2022
@hannobraun hannobraun deleted the fj branch July 15, 2022 11:48
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

Successfully merging this pull request may close these issues.

1 participant