virtual polygon() - to Jiri - Reply

new topic     » topic index » view thread      » older message » newer message

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 blink

And yes, it will be better and faster soon, I am working on it... Jiri

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu