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

[polygon] Add plane option to earcut #308

Merged
merged 2 commits into from
Dec 29, 2022
Merged

[polygon] Add plane option to earcut #308

merged 2 commits into from
Dec 29, 2022

Conversation

Pessimistress
Copy link
Collaborator

Incorporate features from visgl/deck.gl#7205 but without mutating the positions array.

Also use permissive typing (number[] -> NumericArray) so that deck.gl can call this function directly.

@Pessimistress Pessimistress changed the title Add plane option to earcut [polygon] Add plane option to earcut Dec 15, 2022
Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update whats-new with

  • earcut 2.2 (maybe even list some of the improvs from that README?)
  • the plane feature

@felixpalmer
Copy link
Collaborator

felixpalmer commented Dec 15, 2022

Any perf impact of this change? This function gets called a huge number of times

@Pessimistress Pessimistress merged commit d799ea1 into master Dec 29, 2022
@Pessimistress Pessimistress deleted the x/earcut-2 branch December 29, 2022 21:10
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.

4 participants