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

Helper function for earcutting just a std::vector<> of points #106

Open
Andersama opened this issue Sep 29, 2022 · 1 comment
Open

Helper function for earcutting just a std::vector<> of points #106

Andersama opened this issue Sep 29, 2022 · 1 comment

Comments

@Andersama
Copy link

It seems like with very minimal effort the existing:

        template <typename N> template <typename Polygon>
        void Earcut<N>::operator()(const Polygon& points)

could have an accompanying function for handling just a very basic container. Currently the function assumes there may be holes, but for many users, this might not be the case.

@Yaazarai
Copy link

I don't see this as an issue, a quick wrap of your container into a second container as the documentation shows is pretty easy. Or you could write your own wrapper function or write it directly into the header itself to handle this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants