virtual polygon() - to Jiri - Reply
Lee woo seob wrote:
>In the polygon drawn by your routine, as you can see, some points on
>the vertical edge deviate.
You are quite right! I must remember: the distance between two points can differ
by 1 after truncation! The remedy is quite simple: just add a floor() operation
to each of the two sort statements (it should not slow it down significantly):
xx[i]=sort(xx[i])
becomes
xx[i]=sort(floor(xx[i]))
Btw, I noticed, you carefully avoided upward pointing vertices in your examples.
Your routine loses them completely
And yes, it will be better and faster soon, I am working on it... Jiri
|
Not Categorized, Please Help
|
|