Hi Cameron,

Thomas DeWeese:

  The second option would be to ensure that the 'shared edge' is
always drawn in opposite directions.

Cameron McCormack wrote:

Why are the renderings different depending on the direction of the
edges?  Does the anti-aliasing differ?

   I don't really know since I don't have access to the details
of the Java2D renderer, but from a pure geometry point of
view the two are quite different.  If you have two edges that
go in opposite directions to/from the same points they can always
be safely culled.  One will increment and the other with decrement
leaving the winding count the same.  So these two edges can simply
be 'culled' from the edge list - they should have no effect.

   When you have two lines going in the same direction it depends
on the winding rule if they have an effect.  If you are using
Even/Odd (as he was) they shouldn't have an effect (they will
either increment or decrement winding count by two) but of
fill rule is non-zero they can quite certainly make a difference.

   This is also just the 'proper' way to draw geometry.  Most
3D systems require you to draw all geometry counter clockwise
so the cross product is positive (or else they consider the
poly to point the other way).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to