mapgen2 icon indicating copy to clipboard operation
mapgen2 copied to clipboard

Noisy edge function doesn't handle all quadrilateral shape

Open nghiattran opened this issue 6 years ago • 1 comments

I found buildNoisyEdges function couldn't handle this form of quadrilateral because intersections of 2 lines (edge.v0, edge.v1 and edge.d0, edge.d1) will lie outside of their quadrilateral and makes its noisy edge overlap neighboring edges.

u07_l2_t1_text_final_3_files_image001 1

I think this can be solved can restructure this shape into solvable one that you wrote on your blog.

For example: 20190201_212922

Where: A, B: Voronoi points. C, D: Delaunay points. H: intersection of AB and CD.

We can try to reform this ACBD into AC1BD1 before passing it into buildNoisyEdges function. C1 and D1 are intersections of a line that goes through B and AC / AD respectively.

nghiattran avatar Feb 02 '19 05:02 nghiattran

Oh interesting. Are you seeing these kinds of quadrilaterals in this version of mapgen2? I think it is possible but I was hoping they would not actually happen.

(Note: I am not working on mapgen2 anymore; it was a project from 2010.)

amitp avatar Feb 11 '19 20:02 amitp