Welcome to the Monastery | |
PerlMonks |
Re^9: Polygon Creation -- Request for Algorithm Suggestionsby roboticus (Chancellor) |
on Nov 25, 2017 at 00:05 UTC ( [id://1204217]=note: print w/replies, xml ) | Need Help?? |
huck: I'm sorry I didn't describe my algorithm better the first time. Had I done so, you probably wouldn't have had to wrestle with it. I meant to describe it better, but lost track of some of the things I said vs. some of the things I meant to say. I'm sure it would've also been clearer had I not left some entries out of the %dirs hash, and had I mentioned that it's simply doing a clockwise sweep looking for the next border point. I was also troubled by my numbering scheme, but wasn't able to come up with something cleaner. I'm certain that a bit of thinking might give a much better solution that what I currently have. But what I have is good enough for me, for now. 8^) ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|