2d-visibility icon indicating copy to clipboard operation
2d-visibility copied to clipboard

bug: overlapped cases

Open PositivePeriod opened this issue 4 years ago • 2 comments

First of all, thanks for your code in JavaScript. It helps me a lot. Thank you :D However, I want to share some idea about overlapping polygon since it doesn't work well. image Since the original one works well for overlapped rectangles, I am curious about the difference between the original one and yours. I think the original one might preprocess about collision between walls and blocks. Since I could not understand the original code JavaScript code, I want to ask if you know or remember the difference.

PositivePeriod avatar Jul 10 '21 17:07 PositivePeriod

I found the related parameter in original one called "demo_intersectionsDetected". In this file, it is found. In other file, it is used for visualizing. Also, I finally understand why the algorithm "looks" work well. In my opinion, the visualization of block is executed later than the visualizing light. That's why the interactive playground works well. Thanks :) If you have any extra idea, please let me know. Otherwise, I think you could close the issue. Have a nice day.

PositivePeriod avatar Jul 10 '21 18:07 PositivePeriod

image I found much clear issue

PositivePeriod avatar Jul 10 '21 18:07 PositivePeriod