earcut.hpp icon indicating copy to clipboard operation
earcut.hpp copied to clipboard

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

Open Andersama opened this issue 2 years ago • 1 comments

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.

Andersama avatar Sep 29 '22 23:09 Andersama

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.

Yaazarai avatar Apr 26 '23 07:04 Yaazarai