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

getTokens() area points/polygon #1961

Closed
bubblobill opened this issue May 30, 2020 · 1 comment
Closed

getTokens() area points/polygon #1961

bubblobill opened this issue May 30, 2020 · 1 comment
Labels
feature Adding functionality that adds value

Comments

@bubblobill
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
getTokens() using 'area' requires an array of all points within the area. Generating the list of points is computationally intensive in MT script and mathematically complex for many shapes. I don't know if it even works for non-grid related co-ordinates.

Describe the solution you'd like
The ability to describe the area by providing the bounding points of a polygon as used in movedOverPoints

Describe alternatives you've considered
For my use case of a rotated rectangle:
-Store a set of points and apply affine transforms to each point.
-Generate the points using linear interpolation for each line of the rectangle.
These take too long (3.5-17 secs depending on method) for an area 15 x 30 cells.

@Phergus Phergus added the feature Adding functionality that adds value label May 30, 2020
@Phergus
Copy link
Contributor

Phergus commented Sep 17, 2022

Functionality should be handled in whatever is done for #3257.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
None yet
Development

No branches or pull requests

2 participants