AngusJohnson / Clipper2

Polygon Clipping and Offsetting - C++, C# and Delphi
Boost Software License 1.0
1.45k stars 266 forks source link

The efficiency of using Clipper2's offset operation has slowed down #816

Closed zhangjiangzhao123 closed 5 months ago

zhangjiangzhao123 commented 5 months ago

I heard that there is an upgraded Clipper2 that can be used, so I eagerly downloaded and compiled Clipper2, which was then used in my project. Unfortunately, my algorithm started to slow down. And, I tested a simple offset operation using the same default parameters as Clipper1, and I did not find that the algorithm became faster or even slightly slower. I am very confused and would like to know what improper operations can slow down the offset operation efficiency of Clipper2? I have experienced multiple sleepless nights and hope to receive your answer.

AngusJohnson commented 5 months ago

You really must provide a small amount of sample code that demonstrates this degraded performance if you're expecting to get help. (See Reporting Issues.)

zhangjiangzhao123 commented 5 months ago

It's my fault, I mistakenly used Bevel instead of Miter, and there is a huge difference in efficiency between these two different operations. Thank you for your reply.