P is for Practical | |
PerlMonks |
Re: Better maps with Math::Geometry::Voronoi, and a Challenge for Math Monksby BrowserUk (Patriarch) |
on Jul 05, 2008 at 06:20 UTC ( [id://695660]=note: print w/replies, xml ) | Need Help?? |
Sam. I've finally come up with an example that I believe proves that M::G::V is producing wrong output. Whether the underlying library, or something happens on the way through I cannot identify. If you run the following code, it produces 10 polygons, including the triangle that appears as an asymmetry at roughly 11 o'clock, in the png produced. However, when I feed the same points into this voronoi applet, only 9 polygons and no asymmetry result. ( You have to feed the points into that applet by clicking, so I've arranged the input data in roughly the correct (physical) pattern in the code below.) If you compare the results from the two implementations I think you'll agree that M::G::V is producing an extraneous polygon.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Meditations
|
|