Visibility polygon algorithm

preview_player
Показать описание
Computational geometry algorithm to create visibility polygon among other polygons.

1 - cast a ray to every polygon vertex
2 - add two more rays with a very small angle gap (-0.1 and 0.1)
3 - check for ray intersection (update ray end point based on intersection point)
5 - draw light shape with ray end point

References :
Рекомендации по теме
Комментарии
Автор

hey fala Bruno, não tinha visto este, ficou muito legal. Obrigado pela explicação na descrição, vou tentar fazer um depois :)

LeoOno
Автор

Can I have the code please? I need it for a project over security cameras. Thanks!

and_rule