Skip to content
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

Help with Visibility Polygon Creation Pre-loop Behavior #9

Open
hawkinsw opened this issue Feb 17, 2021 · 0 comments
Open

Help with Visibility Polygon Creation Pre-loop Behavior #9

hawkinsw opened this issue Feb 17, 2021 · 0 comments
Assignees

Comments

@hawkinsw
Copy link
Collaborator

In the startup to the visibility polygon calculation function, you insert the incident edge to the first vertex encountered on the CCW sweep (

// Insert e into q2 as long as it doesn't contain the
). In the two published versions of the algorithm (the TR and the conference article), I cannot find this behavior. In one version, no points are initially pushed into q2. In the other version, the edges whose starting vertex is exactly horizontal to the observer are all inserted into q2, except for the first edge. I am sure that what you are doing is correct, but I cannot wrap my head around the reasoning and would appreciate a tutorial if you had a minute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants