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

crop for Model #33

Open
christo opened this issue Jun 8, 2023 · 0 comments
Open

crop for Model #33

christo opened this issue Jun 8, 2023 · 0 comments
Assignees
Milestone

Comments

@christo
Copy link
Owner

christo commented Jun 8, 2023

Crop would truncate geometry outside a given rect, cut would do the same but remove geometry inside the given rect. All isolated points to be cut would simply be removed.

Lines that bisect the boundary need to be split with new endpoints on the boundary and would result in additional elements if, say, a Polyline enters and exits the cut region.

For Asteroids this must be extended to allow toroidal space where an object can be partly on one edge of the screen and partly on the opposite edge. For corners this could be a four-way split. Until then, make an off-screen margin large enough to contain the largest asteroid so that the modulus coordinates don't force interpolation lines between points at opposite extremes of the Model space.

@christo christo added this to the 1.0 milestone Jun 8, 2023
@christo christo modified the milestones: 1.0, 0.1 Sep 26, 2023
@christo christo self-assigned this Sep 27, 2023
christo added a commit that referenced this issue Sep 27, 2023
@christo christo changed the title implement crop and cut for Model implement crop for Model Sep 27, 2023
@christo christo changed the title implement crop for Model crop for Model Sep 27, 2023
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