Iterative Minkowski Difference optimization #289
Unanswered
petrasvestartas
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Copied from #288:
It is difficult to suggest the optimisation of the Obviously the optimisation is only possible by moving significant computations out of the nested loop that gives this Is that an answer you are looking for? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am developing a nesting method using Clipper2 and Minkowski difference.
But the method is quite slow after 120 iterations the total execution time goes above 300 ms.
This process is iterative:
In the screenshots I am using the same square element, but in reality every nth element will be different.
That is the reason why I need to recompute minkowski difference each time.
First I thought that boolean union takes the most time, but the most time is used for Minkowski difference in the following code.
Question
Could you recommend what would be the best strategy to optimize the code because each part of the "Compute minkowski sum for two polygons with holes" takes more than 3-4 ms? Maybe a concept could be different for this problem? Any ideas would be much appreciated. Also why minkowski of clipper is using boolean union once you check this function in the source file?
What I am doing?
Iteration:1
Iteration:2
Iteration:3
Iteration:4
Iteration:120
Iteration time:
Beta Was this translation helpful? Give feedback.
All reactions