-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
algorithm comparison #123
Comments
Great thing! can you please explain the metrics? I didn't understand the abbrevations |
I'd like to forward you to the graphicsmagick documentation but it's not very helpful. |
Thanks a lot! |
Really really good tool. Thank you. |
have you found a new use case for this hack @Llorx ? i thought it doesn't do much on its own so there's no real benefit to make it more reusable. |
@daef Just to see the problems some libraries have with certain polygons. The red/green error deviation thingy was really useful. I was looking for a library with good rectangle handling. |
i guess when there are 'just' axis aligned rects one could do much better than with a generic polygon lib, is performance your main concern or are you looking for something correct/robust? :) EDIT: reopened, i accidentaly closed the issue |
Both, correctness and performant. I need to merge about 200 hundred rectangles into a single polygon in less than 16ms (for drawing to a canvas at 60 fps) but I also need for it to be drawn correctly. I thought that this new algorithm will help, but nope. I lose a lot of frames, so forgot about this solution and now I'm looking for webgl. |
Was it too slow or incorrect? |
Seems like rasterizing is a more convenient approach in your case. |
Yes, with "cascading" approach it's very heavy. I have faced that problem before in https://github.com/w8r/ploygon-offset But if you are dealing with rectangles and they are axis-aligned as I see on the picture, it only makes sense to go for raster approach. |
not really an issue, but I wanted to dump a reference here too:
I made a small comparison between some boolean operation algorithms and
wanted to share the results: https://daef.github.io/poly-bool-comparison/
The text was updated successfully, but these errors were encountered: