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

Investigate whether we can make the preview scene interactive #23

Open
fwcd opened this issue Feb 18, 2023 · 0 comments
Open

Investigate whether we can make the preview scene interactive #23

fwcd opened this issue Feb 18, 2023 · 0 comments
Labels
enhancement New feature or request polish Polishing view View-related

Comments

@fwcd
Copy link
Owner

fwcd commented Feb 18, 2023

This could get pretty tricky after we have #3 and #5, since we'd need to track the 'origin' of each triangle throughout the CSG transformations (#22 would probably come in handy too).

But it would still be very cool if the user could e.g. drag/scale/rotate the objects in real-time in the preview as the code updates automatically (and perhaps snap it to the grid (optionally?)).

Note that this might also require inverting the entire tranformation stack. E.g. if the cube dragged by the user is inside a

Translate(...) {
  Rotate(...) {
    ...
  }
}

we'd have to compute how the original position/scales would have to be modified.

@fwcd fwcd added enhancement New feature or request polish Polishing view View-related labels Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request polish Polishing view View-related
Projects
None yet
Development

No branches or pull requests

1 participant