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

Triangulation breaks if river overlaps itself #3

Open
nikpau opened this issue Sep 27, 2024 · 0 comments
Open

Triangulation breaks if river overlaps itself #3

nikpau opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@nikpau
Copy link
Owner

nikpau commented Sep 27, 2024

Triangulation only works correctly if rivers does not overlap

Due to the randomness of the generation process of the river, it is not guaranteed that it does not overlap itself in the output space.
By the time I originally wrote this generator, this did not matter, as only a small local segment of the river was required at any time.

However, with the new UCD compliant exporter, this no longer holds, as the CDT algorithm considers the entire point cloud during triangulation. This leads to an interwoven web at the location where the river overlaps.

Solution

I guess the easiest workaround is, to somehow figure out whether a river overlaps and discard it right away. If anyone has a better idea, tell me!

@nikpau nikpau added bug Something isn't working help wanted Extra attention is needed labels Sep 27, 2024
@nikpau nikpau self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant