ardazishvili / Sota

Editable generator of discrete structures for Godot 4
MIT License
31 stars 2 forks source link

Broken seam between biomes #9

Open ardazishvili opened 2 months ago

ardazishvili commented 2 months ago

There should be no holes in mesh. But rarely there are: bug same_bug_at_rect_mesh

Possible root cause

For mesh A of type RidgeHexMesh calculation of distances from corners to border depends on same calculation for its neighbours 1...6. https://github.com/ardazishvili/Sota/blob/0f0eb82c39c16c7df4ec56171e2bde0917b63d00/src/ridge_impl/ridge_hex_mesh.cpp#L36C1-L51C4

Possible fix

If assumption about root cause is correct, one option is to make proper order of calculation (if "proper" order exists). Other option is to change way of calculation

ardazishvili commented 2 months ago

Check if reproduced after #35

ardazishvili commented 1 month ago

Check if reproduced after #35

Bug is still there :bug: